mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-19 02:24:30 +00:00

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.
48 lines
817 B
Nix
48 lines
817 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, plumbum
|
|
, requests
|
|
, setuptools
|
|
, hypothesis
|
|
, nose
|
|
, responses
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "habitipy";
|
|
version = "0.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ASMfreaK";
|
|
repo = "habitipy";
|
|
rev = "v${version}";
|
|
sha256 = "1vf485z5m4h61p64zr3sgkcil2s3brq7dja4n7m49d1fvzcirylv";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
plumbum
|
|
requests
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
nose
|
|
responses
|
|
];
|
|
|
|
checkPhase = ''
|
|
HOME=$TMPDIR nosetests
|
|
'';
|
|
|
|
pythonImportsCheck = [ "habitipy" ];
|
|
|
|
meta = with lib; {
|
|
description = "Tools and library for Habitica restful API";
|
|
homepage = "https://github.com/ASMfreaK/habitipy";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|