python312Packages.pytest-services: add patch to relace distutils
This commit is contained in:
parent
e506017eaf
commit
e16e8bbfe9
2 changed files with 14 additions and 14 deletions
|
@ -18,7 +18,6 @@
|
|||
, pythonOlder
|
||||
, requests-toolbelt
|
||||
, routes
|
||||
, setuptools
|
||||
, setuptools-scm
|
||||
, simplejson
|
||||
, zc-lockfile
|
||||
|
@ -58,7 +57,6 @@ buildPythonPackage rec {
|
|||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
|
@ -129,18 +127,10 @@ buildPythonPackage rec {
|
|||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
json = [
|
||||
simplejson
|
||||
];
|
||||
memcached_session = [
|
||||
python-memcached
|
||||
];
|
||||
routes_dispatcher = [
|
||||
routes
|
||||
];
|
||||
ssl = [
|
||||
pyopenssl
|
||||
];
|
||||
json = [ simplejson ];
|
||||
memcached_session = [ python-memcached ];
|
||||
routes_dispatcher = [ routes ];
|
||||
ssl = [ pyopenssl ];
|
||||
# not packaged yet
|
||||
xcgi = [ /* flup */ ];
|
||||
};
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, psutil
|
||||
, pylibmc
|
||||
, pytest
|
||||
|
@ -28,6 +29,15 @@ buildPythonPackage rec {
|
|||
hash = "sha256-E/VcKcAb1ekypm5jP4lsSz1LYJTcTSed6i5OY5ihP30=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Replace distutils.spawn.find_executable with shutil.which, https://github.com/pytest-dev/pytest-services/pull/46
|
||||
(fetchpatch {
|
||||
name = "replace-distutils.patch";
|
||||
url = "https://github.com/pytest-dev/pytest-services/commit/e0e2a85434a2dcbcc0584299c5b2b751efe0b6db.patch";
|
||||
hash = "sha256-hvr7EedfjfonHDn6v2slwUBqz1xQoF7Ez/kqAhZRXEc=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
toml
|
||||
|
|
Loading…
Reference in a new issue