uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
97
pkgs/development/python-modules/cheroot/default.nix
Normal file
97
pkgs/development/python-modules/cheroot/default.nix
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, jaraco_functools
|
||||
, jaraco_text
|
||||
, more-itertools
|
||||
, portend
|
||||
, pyopenssl
|
||||
, pypytools
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
, requests-toolbelt
|
||||
, requests-unixsocket
|
||||
, setuptools-scm
|
||||
, setuptools-scm-git-archive
|
||||
, six
|
||||
, trustme
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cheroot";
|
||||
version = "8.6.0";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-NmrfbnyslVVIbC0b5il5kwIu/2+MRlXBRDJozKPwjiU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
setuptools-scm-git-archive
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
jaraco_functools
|
||||
more-itertools
|
||||
six
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
jaraco_text
|
||||
portend
|
||||
pyopenssl
|
||||
pypytools
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
requests
|
||||
requests-toolbelt
|
||||
requests-unixsocket
|
||||
trustme
|
||||
];
|
||||
|
||||
# Disable doctest plugin because times out
|
||||
# Disable xdist (-n arg) because it's incompatible with testmon
|
||||
# Deselect test_bind_addr_unix on darwin because times out
|
||||
# Deselect test_http_over_https_error on darwin because builtin cert fails
|
||||
# Disable warnings-as-errors because of deprecation warnings from socks on python 3.7
|
||||
# Disable pytest-testmon because it doesn't work
|
||||
# adds many other pytest utilities which aren't necessary like linting
|
||||
preCheck = ''
|
||||
rm pytest.ini
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
"tls" # touches network
|
||||
"peercreds_unix_sock" # test urls no longer allowed
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
"http_over_https_error"
|
||||
"bind_addr_unix"
|
||||
"test_ssl_env"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# avoid attempting to use 3 packages not available on nixpkgs
|
||||
# (jaraco.apt, jaraco.context, yg.lockfile)
|
||||
"cheroot/test/test_wsgi.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"cheroot"
|
||||
];
|
||||
|
||||
# Some of the tests use localhost networking.
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "High-performance, pure-Python HTTP";
|
||||
homepage = "https://github.com/cherrypy/cheroot";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue