From c361307da34b0c282a4d9cb316e9126d92e00240 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 17 Jan 2021 21:06:30 +0100 Subject: [PATCH] python3Packages.adext: init at 0.3 --- .../python-modules/adext/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/python-modules/adext/default.nix diff --git a/pkgs/development/python-modules/adext/default.nix b/pkgs/development/python-modules/adext/default.nix new file mode 100644 index 000000000000..f3818c93188b --- /dev/null +++ b/pkgs/development/python-modules/adext/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildPythonPackage +, fetchPypi +, alarmdecoder +}: + +buildPythonPackage rec { + pname = "adext"; + version = "0.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "184qxw6i5ixnhgkjnby4zwn4jg90mxb8xy9vbg80x5w331p4z50f"; + }; + + postPatch = '' + substituteInPlace setup.py \ + --replace "alarmdecoder==1.13.2" "alarmdecoder>=1.13.2" + ''; + + propagatedBuildInputs = [ alarmdecoder ]; + + # Tests are not published yet + doCheck = false; + pythonImportsCheck = [ "adext" ]; + + meta = with lib; { + description = "Python extension for AlarmDecoder"; + homepage = "https://github.com/ajschmidt8/adext"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 195fee99a907..53a0834b8c30 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -174,6 +174,8 @@ in { addic7ed-cli = callPackage ../development/python-modules/addic7ed-cli { }; + adext = callPackage ../development/python-modules/adext { }; + adguardhome = callPackage ../development/python-modules/adguardhome { }; advantage-air = callPackage ../development/python-modules/advantage-air { };