1{ lib
2, requests
3, buildPythonPackage
4, fetchFromGitHub
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "fordpass";
10 version = "0.0.4";
11 disabled = pythonOlder "3.7";
12
13 src = fetchFromGitHub {
14 owner = "clarkd";
15 repo = "fordpass-python";
16 rev = version;
17 sha256 = "0i1dlswxc2bv1smc5d4r1adbxbl7sgr1swh2cjfajp73vs43xa0m";
18 };
19
20 propagatedBuildInputs = [
21 requests
22 ];
23
24 # Project has no tests
25 doCheck = false;
26
27 pythonImportsCheck = [ "fordpass" ];
28
29 meta = with lib; {
30 description = "Python module for the FordPass API";
31 homepage = "https://github.com/clarkd/fordpass-python";
32 license = with licenses; [ mit ];
33 maintainers = with maintainers; [ fab ];
34 };
35}