diff --git a/pkgs/development/python-modules/appnope/default.nix b/pkgs/development/python-modules/appnope/default.nix new file mode 100644 index 000000000000..08f6fa529ca7 --- /dev/null +++ b/pkgs/development/python-modules/appnope/default.nix @@ -0,0 +1,21 @@ +{ lib +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "appnope"; + version = "0.1.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "8b995ffe925347a2138d7ac0fe77155e4311a0ea6d6da4f5128fe4b3cbe5ed71"; + }; + + meta = { + description = "Disable App Nap on macOS"; + homepage = https://pypi.python.org/pypi/appnope; + platforms = lib.platforms.darwin; + license = lib.licenses.bsd3; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3350fad20068..5b8639edce79 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -571,22 +571,7 @@ in { application = callPackage ../development/python-modules/application { }; - appnope = buildPythonPackage rec { - version = "0.1.0"; - name = "appnope-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/a/appnope/${name}.tar.gz"; - sha256 = "8b995ffe925347a2138d7ac0fe77155e4311a0ea6d6da4f5128fe4b3cbe5ed71"; - }; - - meta = { - description = "Disable App Nap on macOS"; - homepage = https://pypi.python.org/pypi/appnope; - platforms = platforms.darwin; - license = licenses.bsd3; - }; - }; + appnope = callPackage ../development/python-modules/appnope { }; apsw = callPackage ../development/python-modules/apsw {};