mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
9408fdff46
Diff: https://github.com/h2non/pook/compare/refs/tags/v1.0.2...v1.1.0 Changelog: https://github.com/h2non/pook/blob/v1.1.0/History.rst
51 lines
915 B
Nix
51 lines
915 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
|
|
];
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|