diff options
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/science/math/suitesparse/default.nix | 6 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 61 |
2 files changed, 66 insertions, 1 deletions
diff --git a/pkgs/development/libraries/science/math/suitesparse/default.nix b/pkgs/development/libraries/science/math/suitesparse/default.nix index e32b8b344267..679e6f51ddc6 100644 --- a/pkgs/development/libraries/science/math/suitesparse/default.nix +++ b/pkgs/development/libraries/science/math/suitesparse/default.nix @@ -23,6 +23,10 @@ stdenv.mkDerivation { -e 's/METIS_PATH .*$/METIS_PATH =/' \ -e '/CHOLMOD_CONFIG/ s/$/-DNPARTITION -DLONGBLAS=${int_t}/' \ -e '/UMFPACK_CONFIG/ s/$/-DLONGBLAS=${int_t}/' + '' + + stdenv.lib.optionalString stdenv.isDarwin '' + sed -i "SuiteSparse_config/SuiteSparse_config.mk" \ + -e 's/^[[:space:]]*\(LIB = -lm\) -lrt/\1/' ''; makeFlags = [ @@ -33,7 +37,7 @@ stdenv.mkDerivation { "LAPACK=" ]; - NIX_CFLAGS = "-fPIC"; + NIX_CFLAGS = "-fPIC" + stdenv.lib.optionalString stdenv.isDarwin " -DNTIMER"; postInstall = '' # Build and install shared library diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1263e4adef96..392b4af4c565 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8025,6 +8025,28 @@ in modules // { }; }; + django_compat = buildPythonPackage rec { + name = "django-compat-${version}"; + version = "1.0.8"; + + # build process attempts to access a missing README.rst + disabled = isPy35; + + src = pkgs.fetchurl { + url = "https://pypi.python.org/packages/source/d/django-compat/${name}.tar.gz"; + sha256 = "195dgr55vzpw1fbjvbw2h35k9bfhvm5zchh2p7nzbq57xmwb3sra"; + }; + + buildInputs = with self; [ django_nose ]; + propagatedBuildInputs = with self; [ django six ]; + + meta = { + description = "Forward and backwards compatibility layer for Django 1.4, 1.7, 1.8, and 1.9"; + homepage = https://github.com/arteria/django-compat; + license = licenses.mit; + }; + }; + django_evolution = buildPythonPackage rec { name = "django_evolution-0.7.5"; disabled = isPy3k; @@ -8085,6 +8107,45 @@ in modules // { }; }; + django_hijack = buildPythonPackage rec { + name = "django-hijack-${version}"; + version = "2.0.7"; + + src = pkgs.fetchurl { + url = "https://pypi.python.org/packages/source/d/django-hijack/${name}.tar.gz"; + sha256 = "0rpi1bkfx74xfbb2nk874kfdra1jcqp2vzky1r3z7zidlc9kah04"; + }; + + propagatedBuildInputs = with self; [ django django_compat ]; + + meta = { + description = "Allows superusers to hijack (=login as) and work on behalf of another user"; + homepage = https://github.com/arteria/django-hijack; + license = licenses.mit; + }; + }; + + django_nose = buildPythonPackage rec { + name = "django-nose-${version}"; + version = "1.4.3"; + + src = pkgs.fetchurl { + url = "https://pypi.python.org/packages/source/d/django-nose/${name}.tar.gz"; + sha256 = "0rl9ipa98smprlw56xqlhzhps28p84wg0640qlyn0rjyrpsdmf0r"; + }; + + # vast dependency list + doCheck = false; + + propagatedBuildInputs = with self; [ django nose ]; + + meta = { + description = "Provides all the goodness of nose in your Django tests"; + homepage = https://github.com/django-nose/django-nose; + license = licenses.bsd3; + }; + }; + django_modelcluster = buildPythonPackage rec { name = "django-modelcluster-${version}"; version = "0.6.2"; |