1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hypothesis,
6 rfc3987,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "rfc3986-validator";
12 version = "0.1.1";
13 format = "setuptools";
14
15 src = fetchPypi {
16 pname = "rfc3986_validator";
17 inherit version;
18 hash = "sha256-PUS955IbO57Drk463KNwQ47M68Z2RWRJsUXVM7JA0FU=";
19 };
20
21 postPatch = ''
22 substituteInPlace setup.py \
23 --replace "'pytest-runner'," ""
24 '';
25
26 nativeCheckInputs = [
27 hypothesis
28 pytestCheckHook
29 rfc3987
30 ];
31
32 meta = with lib; {
33 description = "Pure python rfc3986 validator";
34 homepage = "https://github.com/naimetti/rfc3986-validator";
35 license = licenses.mit;
36 maintainers = [ ];
37 };
38}