python3Packages.check-manifest: cleanup

This commit is contained in:
Fabian Affolter 2022-01-17 16:25:21 +01:00 committed by Sandro Jäckel
parent e2955b342d
commit 7cbe22df75
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -8,22 +8,21 @@
, pep517
, pytestCheckHook
, toml
, pythonOlder
}:
buildPythonPackage rec {
pname = "check-manifest";
version = "0.47";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "56dadd260a9c7d550b159796d2894b6d0bcc176a94cbc426d9bb93e5e48d12ce";
hash = "sha256-VtrdJgqcfVULFZeW0olLbQvMF2qUy8Qm2buT5eSNEs4=";
};
# Test requires filesystem access
postPatch = ''
substituteInPlace tests.py --replace "test_build_sdist" "no_test_build_sdist"
'';
propagatedBuildInputs = [
build
pep517
@ -37,11 +36,18 @@ buildPythonPackage rec {
pytestCheckHook
];
pythonImportsCheck = [ "check_manifest" ];
disabledTests = [
# Test wants to setup a venv
"test_build_sdist_pep517_isolated"
];
pythonImportsCheck = [
"check_manifest"
];
meta = with lib; {
homepage = "https://github.com/mgedmin/check-manifest";
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 ];
};