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.
52 lines
907 B
Nix
52 lines
907 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, requests
|
|
, tqdm
|
|
, nose
|
|
, vcrpy
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "habanero";
|
|
version = "1.2.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sckott";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-i6tgMEiaDcaBR8XfGvEMXQfTaDp1RJRosj/EfF1dQU4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
tqdm
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
vcrpy
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"habanero"
|
|
];
|
|
|
|
# almost the entirety of the test suite makes network calls
|
|
pytestFlagsArray = [
|
|
"test/test-filters.py"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python interface to Library Genesis";
|
|
homepage = "https://habanero.readthedocs.io/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ nico202 ];
|
|
};
|
|
}
|