about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-01-15 15:47:50 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-01-23 01:09:31 +0100
commit245cde952a184c59e340062104594b25bddd3eeb (patch)
tree5a1e76ec074be00c6a94366f545dbea6e34bd603 /pkgs
parentae72567ccce68a3d0c0f1418f6178d8fdcfbb522 (diff)
python3Packages.rfc3986: add pythonImportsCheck
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/rfc3986/default.nix23
1 files changed, 19 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/rfc3986/default.nix b/pkgs/development/python-modules/rfc3986/default.nix
index 76cdb9bb7755e..f8fcc9aef7ab4 100644
--- a/pkgs/development/python-modules/rfc3986/default.nix
+++ b/pkgs/development/python-modules/rfc3986/default.nix
@@ -1,19 +1,34 @@
-{ lib, buildPythonPackage, fetchPypi, pythonOlder, idna, pytestCheckHook }:
+{ lib
+, buildPythonPackage
+, fetchPypi
+, idna
+, pytestCheckHook
+, pythonOlder
+}:
 
 buildPythonPackage rec {
   pname = "rfc3986";
   version = "2.0.0";
+  format = "setuptools";
 
-  disabled = pythonOlder "3.6";
+  disabled = pythonOlder "3.7";
 
   src = fetchPypi {
     inherit pname version;
     sha256 = "sha256-l6rPnb1L/YKbqtbmMJ+mVzqvG+P2+nNcirBeRs7LJhw=";
   };
 
-  propagatedBuildInputs = [ idna ];
+  propagatedBuildInputs = [
+    idna
+  ];
 
-  checkInputs = [ pytestCheckHook ];
+  checkInputs = [
+    pytestCheckHook
+  ];
+
+  pythonImportsCheck = [
+    "rfc3986"
+  ];
 
   meta = with lib; {
     description = "Validating URI References per RFC 3986";