2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, requests
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fordpass";
|
|
|
|
version = "0.0.4";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-06-28 23:13:55 +00:00
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "demo.py";
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://github.com/clarkd/fordpass-python";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|