nixpkgs/pkgs/development/python-modules/pook/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
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.
2023-01-21 12:00:00 +00:00

51 lines
921 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, furl
, jsonschema
, nose
, pytestCheckHook
, pythonOlder
, requests
, xmltodict
}:
buildPythonPackage rec {
pname = "pook";
version = "1.1.0";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "h2non";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-5hVRyZCA5VzufiYh1l9ezob1iuT8/VXhuFjC0OjGsbQ=";
};
propagatedBuildInputs = [
aiohttp
furl
jsonschema
requests
xmltodict
];
nativeCheckInputs = [
nose
pytestCheckHook
];
pythonImportsCheck = [
"pook"
];
meta = with lib; {
description = "HTTP traffic mocking and testing made simple in Python";
homepage = "https://github.com/h2non/pook";
changelog = "https://github.com/h2non/pook/blob/v${version}/History.rst";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}