mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
44 lines
813 B
Nix
44 lines
813 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, appdirs
|
|
, pytz
|
|
, requests
|
|
, pytestCheckHook
|
|
, requests-mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "datapoint";
|
|
version = "0.9.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ejep";
|
|
repo = "datapoint-python";
|
|
rev = "v${version}";
|
|
hash = "sha256-YC8KFTv6lnCqMfDw1LSova7XBgmKbR3TpPDAAbH9imw=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
appdirs
|
|
pytz
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
requests-mock
|
|
];
|
|
|
|
pytestFlagsArray = [ "tests/unit" ];
|
|
|
|
pythonImportsCheck = [ "datapoint" ];
|
|
|
|
meta = {
|
|
description = "Python interface to the Met Office's Datapoint API";
|
|
homepage = "https://github.com/ejep/datapoint-python";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|