pythonPackages.pymemoize: init at 1.0.3

This commit is contained in:
Henri Bourcereau 2019-01-27 11:55:26 +01:00 committed by worldofpeace
parent f975f511ab
commit 1b11d0f80f
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, django
}:
buildPythonPackage rec {
pname = "pymemoize";
version = "1.0.3";
src = fetchPypi {
inherit version;
pname = "PyMemoize";
sha256 = "0yqr60hm700zph6nv8wb6yp2s0i08mahxvw98bvkmw5ijbsviiq7";
};
checkInputs = [ django ];
# django.core.exceptions.ImproperlyConfigured: Requested settings, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings
doCheck = false;
meta = with stdenv.lib; {
description = "Simple Python cache and memoizing module";
homepage = "https://github.com/mikeboers/PyMemoize";
license = licenses.bsd3;
maintainers = with maintainers; [ mmai ];
};
}

View File

@ -4488,6 +4488,8 @@ in {
pykickstart = callPackage ../development/python-modules/pykickstart { }; pykickstart = callPackage ../development/python-modules/pykickstart { };
pymemoize = callPackage ../development/python-modules/pymemoize { };
pyobjc = if stdenv.isDarwin pyobjc = if stdenv.isDarwin
then callPackage ../development/python-modules/pyobjc {} then callPackage ../development/python-modules/pyobjc {}
else throw "pyobjc can only be built on Mac OS"; else throw "pyobjc can only be built on Mac OS";