python3Packages.pytest-mockservers: init at 0.6.0
This commit is contained in:
parent
1b01e363b6
commit
6ada3dd856
2 changed files with 56 additions and 0 deletions
|
@ -0,0 +1,54 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
|
, fetchFromGitHub
|
||||||
|
, poetry-core
|
||||||
|
, aiohttp
|
||||||
|
, pytest
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pytest-mockservers";
|
||||||
|
version = "0.6.0";
|
||||||
|
format = "pyproject";
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Gr1N";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0xql0fnw7m2zn103601gqbpyd761kzvgjj2iz9hjsv56nr4z1g9i";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace "poetry.masonry.api" "poetry.core.masonry.api"
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
poetry-core
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
aiohttp
|
||||||
|
pytest
|
||||||
|
pytest-asyncio
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"pytest_mockservers"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A set of fixtures to test your requests to HTTP/UDP servers";
|
||||||
|
homepage = "https://github.com/Gr1N/pytest-mockservers";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -6871,6 +6871,8 @@ in {
|
||||||
|
|
||||||
pytest-mock = callPackage ../development/python-modules/pytest-mock { };
|
pytest-mock = callPackage ../development/python-modules/pytest-mock { };
|
||||||
|
|
||||||
|
pytest-mockservers = callPackage ../development/python-modules/pytest-mockservers { };
|
||||||
|
|
||||||
pytest-mpl = callPackage ../development/python-modules/pytest-mpl { };
|
pytest-mpl = callPackage ../development/python-modules/pytest-mpl { };
|
||||||
|
|
||||||
pytest-mypy = callPackage ../development/python-modules/pytest-mypy { };
|
pytest-mypy = callPackage ../development/python-modules/pytest-mypy { };
|
||||||
|
|
Loading…
Reference in a new issue