summary refs log tree commit diff
path: root/pkgs/development/python-modules/uvloop
diff options
context:
space:
mode:
authorDima <43349662+d-goldin@users.noreply.github.com>2019-09-02 04:53:50 +0200
committerSamuel Leathers <disasm@gmail.com>2019-09-01 22:53:50 -0400
commita88976d2222f357331de2a59206b7b4eadc9784f (patch)
tree78e1476ce91a8055cb629d3fb8d74a87efc892b0 /pkgs/development/python-modules/uvloop
parent8a530a0bab1f1d28723e690f702f7a103dc6741d (diff)
downloadnixpkgs-a88976d2222f357331de2a59206b7b4eadc9784f.tar
nixpkgs-a88976d2222f357331de2a59206b7b4eadc9784f.tar.gz
nixpkgs-a88976d2222f357331de2a59206b7b4eadc9784f.tar.bz2
nixpkgs-a88976d2222f357331de2a59206b7b4eadc9784f.tar.lz
nixpkgs-a88976d2222f357331de2a59206b7b4eadc9784f.tar.xz
nixpkgs-a88976d2222f357331de2a59206b7b4eadc9784f.tar.zst
nixpkgs-a88976d2222f357331de2a59206b7b4eadc9784f.zip
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.
Diffstat (limited to 'pkgs/development/python-modules/uvloop')
-rw-r--r--pkgs/development/python-modules/uvloop/default.nix16
1 files changed, 13 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/uvloop/default.nix b/pkgs/development/python-modules/uvloop/default.nix
index 9c3dae74a79..2093f4d7053 100644
--- a/pkgs/development/python-modules/uvloop/default.nix
+++ b/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 ];