python3.pkgs.django-pwa: init at 1.1.0
This commit is contained in:
parent
3821bd3418
commit
0393827930
2 changed files with 51 additions and 0 deletions
49
pkgs/development/python-modules/django-pwa/default.nix
Normal file
49
pkgs/development/python-modules/django-pwa/default.nix
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, django
|
||||||
|
, fetchFromGitHub
|
||||||
|
, python
|
||||||
|
, pythonOlder
|
||||||
|
, setuptools
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "django-pwa";
|
||||||
|
version = "1.1.0";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "silviolleite";
|
||||||
|
repo = "django-pwa";
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-tP1+Jm9hdvN/ZliuVHN8tqy24/tOK1LUUiJv1xUqRrY=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
django
|
||||||
|
];
|
||||||
|
|
||||||
|
pyImportCheck = [
|
||||||
|
"pwa"
|
||||||
|
];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
${python.interpreter} runtests.py
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A Django app to include a manifest.json and Service Worker instance to enable progressive web app behavoir";
|
||||||
|
homepage = "https://github.com/silviolleite/django-pwa";
|
||||||
|
changelog = "https://github.com/silviolleite/django-pwa/releases/tag/v${version}";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ derdennisop ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -3054,6 +3054,8 @@ self: super: with self; {
|
||||||
|
|
||||||
django-prometheus = callPackage ../development/python-modules/django-prometheus { };
|
django-prometheus = callPackage ../development/python-modules/django-prometheus { };
|
||||||
|
|
||||||
|
django-pwa = callPackage ../development/python-modules/django-pwa { };
|
||||||
|
|
||||||
django-q = callPackage ../development/python-modules/django-q { };
|
django-q = callPackage ../development/python-modules/django-q { };
|
||||||
|
|
||||||
django-scheduler = callPackage ../development/python-modules/django-scheduler { };
|
django-scheduler = callPackage ../development/python-modules/django-scheduler { };
|
||||||
|
|
Loading…
Reference in a new issue