pythonPackages.uvloop: 0.12.2 -> 0.13.0 (#67735)
* As mentioned in https://github.com/NixOS/nixpkgs/issues/67492 the build was broken after an update of openssl versions. * Fixes a flake8 unit-test case that requires a flake8 config which is not shipped with the distribution. * Fixes build on darwin.
This commit is contained in:
parent
8a530a0bab
commit
a88976d222
|
@ -1,23 +1,33 @@
|
||||||
{ lib
|
{ lib
|
||||||
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pyopenssl
|
, pyopenssl
|
||||||
, libuv
|
, libuv
|
||||||
, psutil
|
, psutil
|
||||||
, isPy27
|
, isPy27
|
||||||
|
, CoreServices
|
||||||
|
, ApplicationServices
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "uvloop";
|
pname = "uvloop";
|
||||||
version = "0.12.2";
|
version = "0.13.0";
|
||||||
disabled = isPy27;
|
disabled = isPy27;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "c48692bf4587ce281d641087658eca275a5ad3b63c78297bbded96570ae9ce8f";
|
sha256 = "0blcnrd5vky2k1m1p1skx4516dr1jx76yyb0c6fi82si6mqd0b4l";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libuv ];
|
buildInputs = [
|
||||||
|
libuv
|
||||||
|
] ++ lib.optionals stdenv.isDarwin [ CoreServices ApplicationServices ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# Removing code linting tests, which we don't care about
|
||||||
|
rm tests/test_sourcecode.py
|
||||||
|
'';
|
||||||
|
|
||||||
checkInputs = [ pyopenssl psutil ];
|
checkInputs = [ pyopenssl psutil ];
|
||||||
|
|
||||||
|
|
|
@ -1239,7 +1239,9 @@ in {
|
||||||
|
|
||||||
unifi = callPackage ../development/python-modules/unifi { };
|
unifi = callPackage ../development/python-modules/unifi { };
|
||||||
|
|
||||||
uvloop = callPackage ../development/python-modules/uvloop { };
|
uvloop = callPackage ../development/python-modules/uvloop {
|
||||||
|
inherit (pkgs.darwin.apple_sdk.frameworks) ApplicationServices CoreServices;
|
||||||
|
};
|
||||||
|
|
||||||
pyunifi = callPackage ../development/python-modules/pyunifi { };
|
pyunifi = callPackage ../development/python-modules/pyunifi { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue