pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / rfc3986-validator / default.nix
blobbceb67a22594a4b99534fdf14e1664b13c6dd074
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   hypothesis,
6   rfc3987,
7   pytestCheckHook,
8 }:
10 buildPythonPackage rec {
11   pname = "rfc3986-validator";
12   version = "0.1.1";
13   format = "setuptools";
15   src = fetchPypi {
16     pname = "rfc3986_validator";
17     inherit version;
18     hash = "sha256-PUS955IbO57Drk463KNwQ47M68Z2RWRJsUXVM7JA0FU=";
19   };
21   postPatch = ''
22     substituteInPlace setup.py \
23       --replace "'pytest-runner'," ""
24   '';
26   nativeCheckInputs = [
27     hypothesis
28     pytestCheckHook
29     rfc3987
30   ];
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   };