python3Packages.pyzerproc: 0.4.6 -> 0.4.8

This commit is contained in:
Fabian Affolter 2021-02-14 00:22:28 +01:00
parent 5852a21819
commit ee7a97c759

View file

@ -5,7 +5,6 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pytest-asyncio , pytest-asyncio
, pytest-cov
, pytest-mock , pytest-mock
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
@ -13,19 +12,18 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyzerproc"; pname = "pyzerproc";
version = "0.4.6"; version = "0.4.8";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "emlove"; owner = "emlove";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "1qlxvvy9fyff56dvc46nsd5ngkxqhdi7s4gwfndj7dn76j81srpq"; sha256 = "sha256-PNvkgjPcBbnETjWpVF3De9O9IprdpCke0nWvJ9Tju1M=";
}; };
# Remove pytest-runner, https://github.com/emlove/pyzerproc/pull/1 postPatch = ''
patchPhase = '' sed -i "/--cov/d" setup.cfg
substituteInPlace setup.py --replace "'pytest-runner'," ""
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -34,11 +32,11 @@ buildPythonPackage rec {
]; ];
checkInputs = [ checkInputs = [
asynctest
pytest-asyncio pytest-asyncio
pytest-cov
pytest-mock pytest-mock
pytestCheckHook pytestCheckHook
] ++ lib.optionals (pythonOlder "3.8") [
asynctest
]; ];
pythonImportsCheck = [ "pyzerproc" ]; pythonImportsCheck = [ "pyzerproc" ];