diff options
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/oasatelematics/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/oasatelematics/default.nix b/pkgs/development/python-modules/oasatelematics/default.nix new file mode 100644 index 0000000000000..c4d7ca1213872 --- /dev/null +++ b/pkgs/development/python-modules/oasatelematics/default.nix @@ -0,0 +1,40 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +, requests +}: + +buildPythonPackage rec { + pname = "oasatelematics"; + version = "0.3"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "panosmz"; + repo = pname; + rev = "v${version}"; + hash = "sha256-3O7XbNVj1S3ZwheklEhm0ivw16Tj7drML/xYC9383Kg="; + }; + + propagatedBuildInputs = [ + requests + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "oasatelematics" + ]; + + meta = with lib; { + description = "Python wrapper for the OASA Telematics API"; + homepage = "https://github.com/panosmz/oasatelematics"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ fab ]; + }; +} |