python3Packages.pook: init at 1.0.1

This commit is contained in:
Fabian Affolter 2021-03-03 00:01:40 +01:00 committed by Jonathan Ringer
parent 4805fb4f65
commit 5c2c66d218
2 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,57 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, furl
, jsonschema
, nose
, pytestCheckHook
, pythonOlder
, requests
, xmltodict
}:
buildPythonPackage rec {
pname = "pook";
version = "1.0.1";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "h2non";
repo = pname;
rev = "v${version}";
sha256 = "0z48vswj07kr2sdvq5qzrwqyijpmj2rlnh2z2b32id1mckr6nnz8";
};
patches = [
(fetchpatch {
# Will be fixed with the new release, https://github.com/h2non/pook/issues/69
name = "use-match-keyword-in-pytest.patch";
url = "https://github.com/h2non/pook/commit/2071da27701c82ce02b015e01e2aa6fd203e7bb5.patch";
sha256 = "0i3qcpbdqqsnbygi46dyqamgkh9v8rhpbm4lkl75riw48j4n080k";
})
];
propagatedBuildInputs = [
aiohttp
furl
jsonschema
requests
xmltodict
];
checkInputs = [
nose
pytestCheckHook
];
pythonImportsCheck = [ "pook" ];
meta = with lib; {
description = "HTTP traffic mocking and testing made simple in Python";
homepage = "https://github.com/h2non/pook";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -5095,6 +5095,8 @@ in {
pooch = callPackage ../development/python-modules/pooch { };
pook = callPackage ../development/python-modules/pook { };
poolsense = callPackage ../development/python-modules/poolsense { };
poppler-qt5 = callPackage ../development/python-modules/poppler-qt5 {