Skip to content

Commit

Permalink
pythonPackages.uvloop: 0.12.2 -> 0.13.0 (NixOS#67735)
Browse files Browse the repository at this point in the history
* As mentioned in NixOS#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.
  • Loading branch information
d-goldin authored and disassembler committed Sep 2, 2019
1 parent 8a530a0 commit a88976d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
16 changes: 13 additions & 3 deletions pkgs/development/python-modules/uvloop/default.nix
@@ -1,23 +1,33 @@
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pyopenssl
, libuv
, psutil
, isPy27
, CoreServices
, ApplicationServices
}:

buildPythonPackage rec {
pname = "uvloop";
version = "0.12.2";
version = "0.13.0";
disabled = isPy27;

src = fetchPypi {
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 ];

Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/python-packages.nix
Expand Up @@ -1239,7 +1239,9 @@ in {

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 { };

Expand Down

0 comments on commit a88976d

Please sign in to comment.