1{ lib
2, breezy
3, build
4, buildPythonPackage
5, fetchPypi
6, git
7, mock
8, pep517
9, pytestCheckHook
10, toml
11}:
12
13buildPythonPackage rec {
14 pname = "check-manifest";
15 version = "0.47";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "56dadd260a9c7d550b159796d2894b6d0bcc176a94cbc426d9bb93e5e48d12ce";
20 };
21
22 # Test requires filesystem access
23 postPatch = ''
24 substituteInPlace tests.py --replace "test_build_sdist" "no_test_build_sdist"
25 '';
26
27 propagatedBuildInputs = [
28 build
29 pep517
30 toml
31 ];
32
33 checkInputs = [
34 breezy
35 git
36 mock
37 pytestCheckHook
38 ];
39
40 pythonImportsCheck = [ "check_manifest" ];
41
42 meta = with lib; {
43 homepage = "https://github.com/mgedmin/check-manifest";
44 description = "Check MANIFEST.in in a Python source package for completeness";
45 license = licenses.mit;
46 maintainers = with maintainers; [ lewo ];
47 };
48}