My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pook/default.nix

47 lines
823 B

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, furl
, jsonschema
, nose
, pytestCheckHook
, pythonOlder
, requests
, xmltodict
}:
buildPythonPackage rec {
pname = "pook";
version = "1.0.2";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "h2non";
repo = pname;
rev = "v${version}";
sha256 = "sha256-4OGcnuajGdBRlXCYwbTK/zLNQRrir60qCYajHRRCpkU=";
};
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 ];
};
}