mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 03:23:17 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
38 lines
717 B
Nix
38 lines
717 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, hypothesis
|
|
, rfc3987
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "rfc3986-validator";
|
|
version = "0.1.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
pname = "rfc3986_validator";
|
|
inherit version;
|
|
hash = "sha256-PUS955IbO57Drk463KNwQ47M68Z2RWRJsUXVM7JA0FU=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "'pytest-runner'," ""
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytestCheckHook
|
|
rfc3987
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Pure python rfc3986 validator";
|
|
homepage = "https://github.com/naimetti/rfc3986-validator";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|