diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-04-22 21:53:09 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-04-23 09:12:57 +0200 |
commit | 89168356c268a0ce20ab627e5445d59aa1950c3d (patch) | |
tree | fa775c518510f1077819a1c0c8a3b17b6668e7be /pkgs/development/python-modules/openerz-api | |
parent | c21475e7e8aeaa38b13af380c64da59690056086 (diff) |
python3Packages.openerz-api: init at 0.1.0
Diffstat (limited to 'pkgs/development/python-modules/openerz-api')
-rw-r--r-- | pkgs/development/python-modules/openerz-api/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/openerz-api/default.nix b/pkgs/development/python-modules/openerz-api/default.nix new file mode 100644 index 0000000000000..9cbe89e26a341 --- /dev/null +++ b/pkgs/development/python-modules/openerz-api/default.nix @@ -0,0 +1,39 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +, requests +, testfixtures +}: + +buildPythonPackage rec { + pname = "openerz-api"; + version = "0.1.0"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "misialq"; + repo = pname; + rev = "v${version}"; + sha256 = "10kxsmaz2rn26jijaxmdmhx8vjdz8hrhlrvd39gc8yvqbjwhi3nw"; + }; + + propagatedBuildInputs = [ + requests + ]; + + checkInputs = [ + pytestCheckHook + testfixtures + ]; + + pythonImportsCheck = [ "openerz_api" ]; + + meta = with lib; { + description = "Python module to interact with the OpenERZ API"; + homepage = "https://github.com/misialq/openerz-api"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} |