From 71de64a139f3ab2090ff4186fb01b2f859d34cc3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 21 Nov 2021 17:43:11 +0100 Subject: python3Packages.afsapi: init at 0.0.4 --- pkgs/development/python-modules/afsapi/default.nix | 49 ++++++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/afsapi/default.nix (limited to 'pkgs') diff --git a/pkgs/development/python-modules/afsapi/default.nix b/pkgs/development/python-modules/afsapi/default.nix new file mode 100644 index 00000000000..8ad6fa98ff6 --- /dev/null +++ b/pkgs/development/python-modules/afsapi/default.nix @@ -0,0 +1,49 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, lxml +, pytest-aiohttp +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "afsapi"; + version = "0.0.4"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "zhelev"; + repo = "python-afsapi"; + rev = version; + sha256 = "aevxhHuRedDs0JxeMlYSKHDQwcIs7miRm4FCtssdE0w="; + }; + + propagatedBuildInputs = [ + aiohttp + lxml + ]; + + checkInputs = [ + pytest-aiohttp + pytestCheckHook + ]; + + pytestFlagsArray = [ + "async_tests.py" + ]; + + pythonImportsCheck = [ + "afsapi" + ]; + + meta = with lib; { + description = "Python implementation of the Frontier Silicon API"; + homepage = "https://github.com/zhelev/python-afsapi"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 87b06b9eb14..cb3b83ed678 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -221,6 +221,8 @@ in { affine = callPackage ../development/python-modules/affine { }; + afsapi = callPackage ../development/python-modules/afsapi { }; + agate = callPackage ../development/python-modules/agate { }; agate-dbf = callPackage ../development/python-modules/agate-dbf { }; -- cgit 1.4.1