mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-03-11 03:42:37 +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.
43 lines
835 B
Nix
43 lines
835 B
Nix
{ lib
|
|
, isPy3k
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, nose
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "annexremote";
|
|
version = "1.6.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Lykos153";
|
|
repo = "AnnexRemote";
|
|
rev = "v${version}";
|
|
sha256 = "08myswj1vqkl4s1glykq6xn76a070nv5mxj0z8ibl6axz89bvypi";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
nose
|
|
];
|
|
|
|
checkPhase = ''
|
|
nosetests -v -e "^TestExport_MissingName" -e "^TestRemoveexportdirectory"
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"annexremote"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Helper module to easily develop git-annex remotes";
|
|
homepage = "https://github.com/Lykos153/AnnexRemote";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ montag451 ];
|
|
};
|
|
}
|