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.
47 lines
877 B
Nix
47 lines
877 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "wheel-filename";
|
|
version = "1.4.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jwodder";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-M3XGHG733X5qKuMS6mvFSFHYOwWPaBMXw+w0eYo6ByE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace tox.ini \
|
|
--replace " --cov=wheel_filename --no-cov-on-fail" ""
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"wheel_filename"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Parse wheel filenames";
|
|
homepage = "https://github.com/jwodder/wheel-filename";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ ayazhafiz ];
|
|
};
|
|
}
|