summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2022-08-12 22:54:08 +0200
committerGitHub <noreply@github.com>2022-08-12 22:54:08 +0200
commitee5489c1ae7f2d7f68e2068aae6f2b2a3c6c1957 (patch)
tree0016cc30b2787beb6f1aae4d794fa97b1cf3dba9
parentf8f3210ddcd8eff52d01245bac08e5c9c7286cbf (diff)
parent0167b05d6386747b3d9a8de7308e42934928eec1 (diff)
Merge pull request #186319 from fabaff/aqipy-atmotech
python310Packages.aqipy-atmotech: init at 0.1.5
-rw-r--r--pkgs/development/python-modules/aqipy-atmotech/default.nix41
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aqipy-atmotech/default.nix b/pkgs/development/python-modules/aqipy-atmotech/default.nix
new file mode 100644
index 000000000000..fdecad826c12
--- /dev/null
+++ b/pkgs/development/python-modules/aqipy-atmotech/default.nix
@@ -0,0 +1,41 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, pytestCheckHook
+, pythonOlder
+}:
+
+buildPythonPackage rec {
+ pname = "aqipy-atmotech";
+ version = "0.1.5";
+ format = "setuptools";
+
+ disabled = pythonOlder "3.7";
+
+ src = fetchFromGitHub {
+ owner = "atmotube";
+ repo = "aqipy";
+ rev = version;
+ hash = "sha256-tqHhfJmtVFUSO57Cid9y3LK4pOoG7ROtwDT2hY5IE1Y=";
+ };
+
+ checkInputs = [
+ pytestCheckHook
+ ];
+
+ postPatch = ''
+ substituteInPlace setup.py \
+ --replace "'pytest-runner'" ""
+ '';
+
+ pythonImportsCheck = [
+ "aqipy"
+ ];
+
+ meta = with lib; {
+ description = "Library for AQI calculation";
+ homepage = "https://github.com/atmotube/aqipy";
+ license = licenses.asl20;
+ maintainers = with maintainers; [ fab ];
+ };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 39fb89dcefb9..e104a8d57686 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -633,6 +633,8 @@ in {
apycula = callPackage ../development/python-modules/apycula { };
+ aqipy-atmotech = callPackage ../development/python-modules/aqipy-atmotech { };
+
aqualogic = callPackage ../development/python-modules/aqualogic { };
arabic-reshaper = callPackage ../development/python-modules/arabic-reshaper { };