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.
64 lines
1.1 KiB
Nix
64 lines
1.1 KiB
Nix
{ lib
|
|
, breezy
|
|
, build
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, fetchpatch
|
|
, git
|
|
, mock
|
|
, pep517
|
|
, pytestCheckHook
|
|
, toml
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "check-manifest";
|
|
version = "0.48";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-O1dfHa3nvrMHjvS/M6lFGYNEV8coHbxyaxXFRmtVxlc=";
|
|
};
|
|
|
|
patches = [
|
|
# Fix git submodule tests using file: protocol
|
|
(fetchpatch {
|
|
url = "https://github.com/mgedmin/check-manifest/pull/159.patch";
|
|
hash = "sha256-CDtuIoHgP4THLt+xF32C/OrjakwPOEVTKUh5JuQB5wM=";
|
|
})
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
build
|
|
pep517
|
|
toml
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
breezy
|
|
git
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# Test wants to setup a venv
|
|
"test_build_sdist_pep517_isolated"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"check_manifest"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Check MANIFEST.in in a Python source package for completeness";
|
|
homepage = "https://github.com/mgedmin/check-manifest";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ lewo ];
|
|
};
|
|
}
|