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