Change:
Describe the bug fails on darwin because it erroneously requires alsa-utils. To Reproduce Steps to reproduce the behavior: nix on macos BigSur 11.2.3, run error: Expected behavior I expected a shell to appear (with notify-py available in python) Screenshots Additional context Notify maintainers Metadata system: host os: multi-user?: sandbox: version: channels(egk): nixpkgs: Maintainer information:
I have it working locally now, opened

Discussion:
<del> { lib, buildPythonPackage, fetchPypi, isPy3k, alsaUtils, libnotify, which, loguru, pytest }: </del> <ins> { lib, stdenv, buildPythonPackage, fetchFromGitHub, isPy3k, coreutils, alsaUtils , libnotify, which, jeepney, loguru, pytestCheckHook }: </ins> buildPythonPackage rec { <del> pname = "notify_py"; version = "0.3.1"; </del> <ins> pname = "notify-py"; version = "0.3.3"; </ins> disabled = !isPy3k; <del> src = fetchPypi { inherit pname version; sha256 = "5ba696d18ffe1d7070f3d0a5b4923fee4d6c863de6843af105bec0ce9915ebad"; </del> <ins> src = fetchFromGitHub { owner = "ms7m"; repo = pname; rev = "v${version}"; sha256 = "1n35adwsyhz304n4ifnsz6qzkymwhyqc8sg8d76qv5psv2xsnzlf"; </ins> }; <del> postPatch = '' substituteInPlace setup.py  --replace "loguru==0.4.1" "loguru~=0.5.0" ''; propagatedBuildInputs = [ alsaUtils libnotify loguru which ]; </del> <ins> propagatedNativeBuildInputs = [ which ] ++ lib.optionals stdenv.isLinux [ alsaUtils libnotify ]; propagatedBuildInputs = [ loguru ] ++ lib.optionals stdenv.isLinux [ jeepney ]; </ins> <del> checkInputs = [ alsaUtils libnotify pytest which ]; </del> <ins> checkInputs = [ coreutils pytestCheckHook ]; </ins> <del> checkPhase = '' pytest </del> <ins> # Tests search for "afplay" binary which is built in to MacOS and not available in nixpkgs preCheck = '' mkdir $TMP/bin ln -s ${coreutils}/bin/true $TMP/bin/afplay export PATH="$TMP/bin:$PATH" </ins> ''; pythonImportsCheck = [ "notifypy" ]; meta = with lib; { <del> description = " Python Module for sending cross-platform desktop notifications on Windows, macOS, and Linux."; </del> <ins> description = "Python Module for sending cross-platform desktop notifications on Windows, macOS, and Linux."; </ins> homepage = "https://github.com/ms7m/notify-py/"; license = licenses.mit; maintainers = with maintainers; [ austinbutler ];

<del> { lib, buildPythonPackage, fetchPypi, pythonAtLeast, pythonOlder , click , click-completion , factory_boy , faker , inquirer , notify-py , pbr , pendulum , ptable , pytest , pytestcov , pytest-mock , requests , twine , validate-email }: </del> <ins> { lib, buildPythonPackage, fetchPypi, pythonAtLeast, pythonOlder, click , click-completion, factory_boy, faker, inquirer, notify-py, pbr, pendulum , ptable, pytestCheckHook, pytestcov, pytest-mock, requests, twine , validate-email }: </ins> buildPythonPackage rec { pname = "toggl-cli"; <del> version = "2.4.1"; </del> <ins> version = "2.4.2"; </ins> disabled = pythonOlder "3.5"; src = fetchPypi { pname = "togglCli"; inherit version; <del> sha256 = "19lry8adcznzmzbvghyid3yl4j05db6931bw38af5vrkkyzyf62i"; </del> <ins> sha256 = "1wgh231r16jyvaj1ch1pajvl9szflb4srs505pfdwdlqvz7rzww8"; </ins> }; postPatch = '' <del> substituteInPlace requirements.txt  --replace "inquirer==2.6.3" "inquirer>=2.6.3"  --replace "notify-py==0.2.2" "notify-py>=0.2.2" </del> <ins> substituteInPlace requirements.txt  --replace "notify-py==0.3.1" "notify-py>=0.3.1" </ins> ''; nativeBuildInputs = [ pbr twine ]; <del> checkInputs = [ pbr pytest pytestcov pytest-mock faker factory_boy ]; </del> <ins> checkInputs = [ pbr pytestCheckHook pytestcov pytest-mock faker factory_boy ]; </ins> preCheck = '' export TOGGL_API_TOKEN=your_api_token export TOGGL_PASSWORD=toggl_password export TOGGL_USERNAME=user@example.com <del> ''; checkPhase = '' runHook preCheck pytest -k "not premium and not TestDateTimeType and not TestDateTimeField" tests/unit --maxfail=20 runHook postCheck </del> ''; <ins> disabledTests = [ "integration" "premium" "test_parsing" "test_type_check" "test_now" ]; </ins> propagatedBuildInputs = [ click click-completion