Frederik Rietdijk d9fd85f9fb Revert "python3Packages.python-smarttub: pin pyjwt at 1.7.1"
Overriding within the package set is not allowed. Doing so makes it
possible one ends up with multiple versions of a package, something
Python cannot handle.

This reverts commit 4e9c5151b9932d6b6035e9a0e5b9bad637531f35.
2021-04-04 13:22:31 +02:00

49 lines
910 B
Nix

{ lib
, aiohttp
, aresponses
, buildPythonPackage
, fetchFromGitHub
, inflection
, pyjwt
, pytest-asyncio
, pytestCheckHook
, python-dateutil
, pythonOlder
}:
buildPythonPackage rec {
pname = "python-smarttub";
version = "0.0.19";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "mdz";
repo = pname;
rev = "v${version}";
sha256 = "01i4pvgvpl7inwhy53c6b34pi5zvfiv2scn507j8jdg5cjs04g80";
};
propagatedBuildInputs = [
aiohttp
inflection
pyjwt
python-dateutil
];
checkInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "smarttub" ];
meta = with lib; {
description = "Python API for SmartTub enabled hot tubs";
homepage = "https://github.com/mdz/python-smarttub";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
broken = pyjwt.version != "1.7.1";
};
}