From 63c53fb13885d98f82cb5fc5dcf0b92014d8b34d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 25 Sep 2021 09:46:51 +0200 Subject: [PATCH] python3Packages.pypoolstation: init at 0.4.0 --- .../python-modules/pypoolstation/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/pypoolstation/default.nix diff --git a/pkgs/development/python-modules/pypoolstation/default.nix b/pkgs/development/python-modules/pypoolstation/default.nix new file mode 100644 index 000000000000..b49599cfda10 --- /dev/null +++ b/pkgs/development/python-modules/pypoolstation/default.nix @@ -0,0 +1,41 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchPypi +, poetry-core +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pypoolstation"; + version = "0.4.0"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + pname = "PyPoolstation"; + inherit version; + sha256 = "0qacrjv3qybgx052i8jqs4il3k2g0cdhjcn2lqapv87iqyp287k0"; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + aiohttp + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ "pypoolstation" ]; + + meta = with lib; { + description = "Python library to interact the the Poolstation platform"; + homepage = "https://github.com/cibernox/PyPoolstation"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 50803af17df7..6d010e4ed7b2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5565,6 +5565,8 @@ in { pypoint = callPackage ../development/python-modules/pypoint { }; + pypoolstation = callPackage ../development/python-modules/pypoolstation { }; + pyrfxtrx = callPackage ../development/python-modules/pyrfxtrx { }; pyrogram = callPackage ../development/python-modules/pyrogram { };