about summary refs log tree commit diff
path: root/pkgs/development/python-modules/fordpass
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-06-26 22:22:18 +0200
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-06-26 14:58:31 -0700
commitc2e7cb1a5a8373fdbcd4af6da41e98719032e4f2 (patch)
tree5805ea8c1e378aeb9aef5f2b314224e28eac4e70 /pkgs/development/python-modules/fordpass
parent7387b8215d7dc40723a0486b64d4608040a7584a (diff)
python3Packages.fordpass: init at 0.0.4
Diffstat (limited to 'pkgs/development/python-modules/fordpass')
-rw-r--r--pkgs/development/python-modules/fordpass/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/fordpass/default.nix b/pkgs/development/python-modules/fordpass/default.nix
new file mode 100644
index 0000000000000..d3120e7bb6fcd
--- /dev/null
+++ b/pkgs/development/python-modules/fordpass/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, requests
+, buildPythonPackage
+, fetchFromGitHub
+, pythonOlder
+}:
+
+buildPythonPackage rec {
+  pname = "fordpass";
+  version = "0.0.4";
+  disabled = pythonOlder "3.7";
+
+  src = fetchFromGitHub {
+    owner = "clarkd";
+    repo = "fordpass-python";
+    rev = version;
+    sha256 = "0i1dlswxc2bv1smc5d4r1adbxbl7sgr1swh2cjfajp73vs43xa0m";
+  };
+
+  propagatedBuildInputs = [
+    requests
+  ];
+
+  # Project has no tests
+  doCheck = false;
+
+  pythonImportsCheck = [ "fordpass" ];
+
+  meta = with lib; {
+    description = "Python module for the FordPass API";
+    homepage = "https://github.com/clarkd/fordpass-python";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}