mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-14 16:40:09 +03:00
python3Packages.cheroot: add missing dependency and cleanup
This commit is contained in:
parent
8e4e969714
commit
a2c41d3942
@ -1,16 +1,16 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, isPy3k
|
||||
, fetchPypi
|
||||
, jaraco_functools
|
||||
, jaraco_text
|
||||
, more-itertools
|
||||
, portend
|
||||
, pyopenssl
|
||||
, pytestCheckHook
|
||||
, pytest-cov
|
||||
, pypytools
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
, requests-toolbelt
|
||||
, requests-unixsocket
|
||||
@ -24,19 +24,20 @@ buildPythonPackage rec {
|
||||
pname = "cheroot";
|
||||
version = "8.6.0";
|
||||
|
||||
disabled = !isPy3k;
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "366adf6e7cac9555486c2d1be6297993022eff6f8c4655c1443268cca3f08e25";
|
||||
hash = "sha256-NmrfbnyslVVIbC0b5il5kwIu/2+MRlXBRDJozKPwjiU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools-scm setuptools-scm-git-archive ];
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
setuptools-scm-git-archive
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
# install_requires
|
||||
jaraco_functools
|
||||
|
||||
more-itertools
|
||||
six
|
||||
];
|
||||
@ -45,9 +46,9 @@ buildPythonPackage rec {
|
||||
jaraco_text
|
||||
portend
|
||||
pyopenssl
|
||||
pytestCheckHook
|
||||
pytest-cov
|
||||
pypytools
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
requests
|
||||
requests-toolbelt
|
||||
requests-unixsocket
|
||||
@ -79,6 +80,10 @@ buildPythonPackage rec {
|
||||
"cheroot/test/test_wsgi.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"cheroot"
|
||||
];
|
||||
|
||||
# Some of the tests use localhost networking.
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
@ -86,5 +91,6 @@ buildPythonPackage rec {
|
||||
description = "High-performance, pure-Python HTTP";
|
||||
homepage = "https://github.com/cherrypy/cheroot";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user