nixpkgs/pkgs/development/python-modules/herepy/default.nix
2021-10-30 13:37:06 -07:00

43 lines
791 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, requests
, pytestCheckHook
, responses
}:
buildPythonPackage rec {
pname = "herepy";
version = "3.5.6";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "abdullahselek";
repo = "HerePy";
rev = version;
sha256 = "sha256-I5u5PKB29jQNFdsx+y5ZJOE837D7Hpcsf3pwlCvmEqU=";
};
propagatedBuildInputs = [
requests
];
checkInputs = [
pytestCheckHook
responses
];
pythonImportsCheck = [
"herepy"
];
meta = with lib; {
description = "Library that provides a Python interface to the HERE APIs";
homepage = "https://github.com/abdullahselek/HerePy";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}