Files
nixpkgs/pkgs/development/python-modules/fordpass/default.nix
T
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

38 lines
760 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 ];
};
}