nixpkgs/pkgs/development/python-modules/herepy/default.nix

50 lines
932 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, setuptools
, requests
, pytestCheckHook
, responses
}:
buildPythonPackage rec {
pname = "herepy";
version = "3.6.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "abdullahselek";
repo = "HerePy";
rev = "refs/tags/${version}";
hash = "sha256-DOtlXoVelTGY/fKkHW/K0d0w52Q7N91Whi9AHG4tRZQ=";
};
build-system = [
setuptools
];
dependencies = [
requests
];
nativeCheckInputs = [
pytestCheckHook
responses
];
pythonImportsCheck = [
"herepy"
];
meta = with lib; {
changelog = "https://github.com/abdullahselek/HerePy/releases/tag/${version}";
description = "Library that provides a Python interface to the HERE APIs";
homepage = "https://github.com/abdullahselek/HerePy";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}