python.pkgs.appnope: move expression

This commit is contained in:
Frederik Rietdijk 2018-07-21 09:49:12 +02:00
parent 5d3f5bb61e
commit 865ffc16ce
2 changed files with 22 additions and 16 deletions

View File

@ -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;
};
}

View File

@ -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 {};