about summary refs log tree commit diff
path: root/pkgs/development/python-modules/check-manifest
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-01-17 16:25:21 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2022-02-19 06:18:40 +0100
commit7cbe22df7593a16a4b49b6973d1e5b41c39ea748 (patch)
treef093e7f8d0078386214e6dcb1074e21695e8edbd /pkgs/development/python-modules/check-manifest
parente2955b342d9f019bd6b6bcd3cbcf79cbac897937 (diff)
python3Packages.check-manifest: cleanup
Diffstat (limited to 'pkgs/development/python-modules/check-manifest')
-rw-r--r--pkgs/development/python-modules/check-manifest/default.nix22
1 files changed, 14 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/check-manifest/default.nix b/pkgs/development/python-modules/check-manifest/default.nix
index 608f3a0cac684..d55f5155b4512 100644
--- a/pkgs/development/python-modules/check-manifest/default.nix
+++ b/pkgs/development/python-modules/check-manifest/default.nix
@@ -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 ];
   };