nixpkgs/pkgs/development/python-modules/pook/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
921 B
Nix
Raw Normal View History

2021-03-02 23:01:40 +00:00
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, furl
, jsonschema
, nose
, pytestCheckHook
, pythonOlder
, requests
, xmltodict
}:
buildPythonPackage rec {
pname = "pook";
version = "1.1.1";
2021-03-02 23:01:40 +00:00
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "h2non";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-nLeJAAsJUKFAetZSAQmOtXP+3ZRHvCTFAzycSkK+kiI=";
2021-03-02 23:01:40 +00:00
};
propagatedBuildInputs = [
aiohttp
furl
jsonschema
requests
xmltodict
];
nativeCheckInputs = [
2021-03-02 23:01:40 +00:00
nose
pytestCheckHook
];
pythonImportsCheck = [
"pook"
];
2021-03-02 23:01:40 +00:00
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";
2021-03-02 23:01:40 +00:00
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}