1{ 2 lib, 3 breezy, 4 build, 5 buildPythonPackage, 6 fetchPypi, 7 git, 8 pep517, 9 pytestCheckHook, 10 tomli, 11 pythonOlder, 12}: 13 14buildPythonPackage rec { 15 pname = "check-manifest"; 16 version = "0.49"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-ZKZARFVCzyJpGWV8e3jQLZwcpbHCXX5m4OH/MlBg9BY="; 24 }; 25 26 propagatedBuildInputs = [ 27 build 28 pep517 29 ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; 30 31 nativeCheckInputs = [ 32 git 33 pytestCheckHook 34 ]; 35 36 checkInputs = [ breezy ]; 37 38 disabledTests = [ 39 # Test wants to setup a venv 40 "test_build_sdist_pep517_isolated" 41 ]; 42 43 pythonImportsCheck = [ "check_manifest" ]; 44 45 meta = with lib; { 46 description = "Check MANIFEST.in in a Python source package for completeness"; 47 mainProgram = "check-manifest"; 48 homepage = "https://github.com/mgedmin/check-manifest"; 49 changelog = "https://github.com/mgedmin/check-manifest/blob/${version}/CHANGES.rst"; 50 license = licenses.mit; 51 maintainers = with maintainers; [ lewo ]; 52 }; 53}