From 1a65e24a8cbb9fbff749819ef305eb9801483a7c Mon Sep 17 00:00:00 2001 From: Gregory Anders Date: Fri, 16 Jul 2021 15:33:50 -0600 Subject: [PATCH] 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. --- pkgs/development/python-modules/pync/default.nix | 9 +++++---- pkgs/top-level/python-packages.nix | 4 +++- 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 0eb13c732d7e..f01bfa33186c 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 683cef20196f..924daa20bf1b 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 { };