diff --git a/pkgs/development/python-modules/pysaj/default.nix b/pkgs/development/python-modules/pysaj/default.nix new file mode 100644 index 000000000000..15f8dd0fccf0 --- /dev/null +++ b/pkgs/development/python-modules/pysaj/default.nix @@ -0,0 +1,41 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, lxml +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pysaj"; + version = "0.0.16"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "fredericvl"; + repo = pname; + rev = "v${version}"; + hash = "sha256-7mN6GPRbXfEUfCrCrCs71SSt4x2Ch2y3a5rfXnuwVA0="; + }; + + propagatedBuildInputs = [ + aiohttp + lxml + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "pysaj" + ]; + + meta = with lib; { + description = "Library to communicate with SAJ inverters"; + homepage = "https://github.com/fredericvl/pysaj"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9b79741bcf82..0d101cb5c4e6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7709,6 +7709,8 @@ in { pyruckus = callPackage ../development/python-modules/pyruckus { }; + pysaj = callPackage ../development/python-modules/pysaj { }; + pysam = callPackage ../development/python-modules/pysam { }; pysaml2 = callPackage ../development/python-modules/pysaml2 {