summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorGregory Anders <greg@gpanders.com>2021-07-16 15:33:50 -0600
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-07-17 10:47:41 -0700
commit1a65e24a8cbb9fbff749819ef305eb9801483a7c (patch)
tree2ae27e6cad5174eb30d6e21ed7bc40e40ae890ef /pkgs
parent6d1494bc669c21e0cf16aec3af6450d1776d7883 (diff)
downloadnixpkgs-1a65e24a8cbb9fbff749819ef305eb9801483a7c.tar
nixpkgs-1a65e24a8cbb9fbff749819ef305eb9801483a7c.tar.gz
nixpkgs-1a65e24a8cbb9fbff749819ef305eb9801483a7c.tar.bz2
nixpkgs-1a65e24a8cbb9fbff749819ef305eb9801483a7c.tar.lz
nixpkgs-1a65e24a8cbb9fbff749819ef305eb9801483a7c.tar.xz
nixpkgs-1a65e24a8cbb9fbff749819ef305eb9801483a7c.tar.zst
nixpkgs-1a65e24a8cbb9fbff749819ef305eb9801483a7c.zip
python3Packages.pync: enable for python3 and update checkInputs
Enable pync for Python 3 and add the which package to test dependencies
so that pync's tests pass.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/pync/default.nix9
-rw-r--r--pkgs/top-level/python-packages.nix4
2 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/pync/default.nix b/pkgs/development/python-modules/pync/default.nix
index 0eb13c732d7..f01bfa33186 100644
--- a/pkgs/development/python-modules/pync/default.nix
+++ b/pkgs/development/python-modules/pync/default.nix
@@ -1,22 +1,23 @@
 { lib, stdenv
 , buildPythonPackage
 , fetchPypi
-, isPy27
 , python-dateutil
 , pkgs
+, coreutils
+, which
 }:
 
 buildPythonPackage rec {
   version  = "2.0.3";
   pname = "pync";
-  disabled = ! isPy27;
 
   src = fetchPypi {
     inherit pname version;
     sha256 = "38b9e61735a3161f9211a5773c5f5ea698f36af4ff7f77fa03e8d1ff0caa117f";
   };
 
-  buildInputs = [ pkgs.coreutils ];
+  nativeBuildInputs = [ coreutils ];
+  checkInputs = [ which ];
   propagatedBuildInputs = [ python-dateutil ];
 
   preInstall = lib.optionalString stdenv.isDarwin ''
@@ -25,7 +26,7 @@ buildPythonPackage rec {
 
   meta = with lib; {
     description = "Python Wrapper for Mac OS 10.8 Notification Center";
-    homepage    = "https://pypi.python.org/pypi/pync/1.4";
+    homepage    = "https://pypi.python.org/pypi/pync";
     license     = licenses.mit;
     platforms   = platforms.darwin;
     maintainers = with maintainers; [ lovek323 ];
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 683cef20196..924daa20bf1 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -6278,7 +6278,9 @@ in {
 
   pynanoleaf = callPackage ../development/python-modules/pynanoleaf { };
 
-  pync = callPackage ../development/python-modules/pync { };
+  pync = callPackage ../development/python-modules/pync {
+    inherit (pkgs) coreutils which;
+  };
 
   pynest2d = callPackage ../development/python-modules/pynest2d { };