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.
This commit is contained in:
Gregory Anders 2021-07-16 15:33:50 -06:00 committed by Jonathan Ringer
parent 6d1494bc66
commit 1a65e24a8c
2 changed files with 8 additions and 5 deletions

View file

@ -1,22 +1,23 @@
{ lib, stdenv { lib, stdenv
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, isPy27
, python-dateutil , python-dateutil
, pkgs , pkgs
, coreutils
, which
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "2.0.3"; version = "2.0.3";
pname = "pync"; pname = "pync";
disabled = ! isPy27;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "38b9e61735a3161f9211a5773c5f5ea698f36af4ff7f77fa03e8d1ff0caa117f"; sha256 = "38b9e61735a3161f9211a5773c5f5ea698f36af4ff7f77fa03e8d1ff0caa117f";
}; };
buildInputs = [ pkgs.coreutils ]; nativeBuildInputs = [ coreutils ];
checkInputs = [ which ];
propagatedBuildInputs = [ python-dateutil ]; propagatedBuildInputs = [ python-dateutil ];
preInstall = lib.optionalString stdenv.isDarwin '' preInstall = lib.optionalString stdenv.isDarwin ''
@ -25,7 +26,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Python Wrapper for Mac OS 10.8 Notification Center"; 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; license = licenses.mit;
platforms = platforms.darwin; platforms = platforms.darwin;
maintainers = with maintainers; [ lovek323 ]; maintainers = with maintainers; [ lovek323 ];

View file

@ -6278,7 +6278,9 @@ in {
pynanoleaf = callPackage ../development/python-modules/pynanoleaf { }; 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 { }; pynest2d = callPackage ../development/python-modules/pynest2d { };