620eecebfb
GitOrigin-RevId: 2deb07f3ac4eeb5de1c12c4ba2911a2eb1f6ed61
48 lines
910 B
Nix
48 lines
910 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, requests
|
|
, pytestCheckHook
|
|
, responses
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "herepy";
|
|
version = "3.5.5";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "abdullahselek";
|
|
repo = "HerePy";
|
|
rev = version;
|
|
sha256 = "sha256-nZ+91i+IBdRDN1TsDwmk9pNceFvcV6C155Ds1MQc9z4=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace requirements.txt \
|
|
--replace "requests==2.25.1" "requests>=2.25.1"
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|