1{ lib
2, buildPythonPackage
3, fetchPypi
4, idna
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "rfc3986";
11 version = "2.0.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "sha256-l6rPnb1L/YKbqtbmMJ+mVzqvG+P2+nNcirBeRs7LJhw=";
19 };
20
21 propagatedBuildInputs = [
22 idna
23 ];
24
25 checkInputs = [
26 pytestCheckHook
27 ];
28
29 pythonImportsCheck = [
30 "rfc3986"
31 ];
32
33 meta = with lib; {
34 description = "Validating URI References per RFC 3986";
35 homepage = "https://rfc3986.readthedocs.org";
36 license = licenses.asl20;
37 maintainers = with maintainers; [ SuperSandro2000 ];
38 };
39}