aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/django_appconf
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-10-05 12:43:18 +0000
committerKatharina Fey <kookie@spacekookie.de>2019-10-05 12:44:52 +0000
commitcf85056ba64caf3267d43255ef4a1243e9c8ee3b (patch)
tree3051519e9c8275b870aac43f80af875715c9d124 /nixpkgs/pkgs/development/python-modules/django_appconf
parent1148b1d122bc03e9a3665856c9b7bb96bd4e3994 (diff)
parent2436c27541b2f52deea3a4c1691216a02152e729 (diff)
Add 'nixpkgs/' from commit '2436c27541b2f52deea3a4c1691216a02152e729'
git-subtree-dir: nixpkgs git-subtree-mainline: 1148b1d122bc03e9a3665856c9b7bb96bd4e3994 git-subtree-split: 2436c27541b2f52deea3a4c1691216a02152e729
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/django_appconf')
-rw-r--r--nixpkgs/pkgs/development/python-modules/django_appconf/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/django_appconf/default.nix b/nixpkgs/pkgs/development/python-modules/django_appconf/default.nix
new file mode 100644
index 00000000000..67345cd8d6a
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/django_appconf/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, buildPythonPackage, fetchFromGitHub, six, django }:
+buildPythonPackage rec {
+ pname = "django-appconf";
+ version = "1.0.3";
+
+ src = fetchFromGitHub {
+ owner = "django-compressor";
+ repo = "django-appconf";
+ rev = version;
+ sha256 = "06hwbz7362y0la9np3df25mms235fcqgpd2vn0mnf8dri9spzy1h";
+ };
+
+ propagatedBuildInputs = [ six django ];
+
+ checkPhase = ''
+ # prove we're running tests against installed package, not build dir
+ rm -r appconf
+ python -m django test --settings="tests.test_settings"
+ '';
+
+ meta = with stdenv.lib; {
+ description = "A helper class for handling configuration defaults of packaged apps gracefully";
+ homepage = https://django-appconf.readthedocs.org/;
+ license = licenses.bsd2;
+ maintainers = with maintainers; [ desiderius ];
+ };
+}