mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #17545 from lancelotsix/add_django_guardian
Add django guardian
This commit is contained in:
commit
5bf77fafb7
1 changed files with 44 additions and 2 deletions
|
@ -9134,6 +9134,26 @@ in modules // {
|
|||
};
|
||||
};
|
||||
|
||||
django_environ = buildPythonPackage rec {
|
||||
name = "django-environ-${version}";
|
||||
version = "0.4.0";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/d/django-environ/${name}.tar.gz";
|
||||
sha256 = "0i32vsgk1xmwpi7i6f6v5hg653y9dl0fsz5qmv94skz6hwgm5kvh";
|
||||
};
|
||||
|
||||
# The testsuite fails to modify the base environment
|
||||
doCheck = false;
|
||||
propagatedBuildInputs = with self ; [ django six ];
|
||||
|
||||
meta = {
|
||||
description = "Utilize environment variables to configure your Django application";
|
||||
homepage = https://github.com/joke2k/django-environ/;
|
||||
license = licenses.mit;
|
||||
};
|
||||
};
|
||||
|
||||
django_evolution = buildPythonPackage rec {
|
||||
name = "django_evolution-0.7.5";
|
||||
disabled = isPy3k;
|
||||
|
@ -9151,6 +9171,28 @@ in modules // {
|
|||
};
|
||||
};
|
||||
|
||||
django_guardian = buildPythonPackage rec {
|
||||
name = "django-guardian-${version}";
|
||||
version = "1.4.4";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/d/django-guardian/${name}.tar.gz";
|
||||
sha256 = "1m7y3brk3697hr2cvkzl8dry4pp7wkmhvxmf8db1ardz1r9d8895";
|
||||
};
|
||||
|
||||
buildInputs = with self ; [ pytestrunner pytestdjango django_environ mock sqlite3 ];
|
||||
propagatedBuildInputs = with self ; [ django six ];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} nix_run_setup.py test --addopts="--ignore build"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Per object permissions for Django";
|
||||
homepage = https://github.com/django-guardian/django-guardian;
|
||||
licenses = [ licenses.mit licenses.bsd2 ];
|
||||
};
|
||||
};
|
||||
|
||||
django_tagging = buildPythonPackage rec {
|
||||
name = "django-tagging-0.3.1";
|
||||
|
@ -9220,11 +9262,11 @@ in modules // {
|
|||
|
||||
django_nose = buildPythonPackage rec {
|
||||
name = "django-nose-${version}";
|
||||
version = "1.4.3";
|
||||
version = "1.4.4";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/d/django-nose/${name}.tar.gz";
|
||||
sha256 = "0rl9ipa98smprlw56xqlhzhps28p84wg0640qlyn0rjyrpsdmf0r";
|
||||
sha256 = "1fm47fkza2lk0xgc6qpi9vs78zg7q8cgl6mdan69sbycgy909ff0";
|
||||
};
|
||||
|
||||
# vast dependency list
|
||||
|
|
Loading…
Reference in a new issue