depot/third_party/nixpkgs/pkgs/development/python-modules/fordpass/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

36 lines
761 B
Nix

{
lib,
requests,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
}:
buildPythonPackage rec {
pname = "fordpass";
version = "0.0.4";
format = "setuptools";
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";
mainProgram = "demo.py";
homepage = "https://github.com/clarkd/fordpass-python";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}