python3Packages.django-q: add gador as maintainer, switch to GitHub
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
parent
d2a4e79a6d
commit
ea860254b7
2 changed files with 97 additions and 7 deletions
|
@ -1,24 +1,82 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, django-picklefield, arrow
|
{ arrow
|
||||||
, blessed, django, future }:
|
, blessed
|
||||||
|
, buildPythonPackage
|
||||||
|
, croniter
|
||||||
|
, django
|
||||||
|
, django-redis
|
||||||
|
, django-picklefield
|
||||||
|
, fetchFromGitHub
|
||||||
|
, future
|
||||||
|
, lib
|
||||||
|
, poetry-core
|
||||||
|
, pytest-django
|
||||||
|
, pytest-mock
|
||||||
|
, pytestCheckHook
|
||||||
|
, pkgs
|
||||||
|
, stdenv
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "django-q";
|
pname = "django-q";
|
||||||
version = "1.3.9";
|
version = "1.3.9";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "Koed00";
|
||||||
sha256 = "5c6b4d530aa3aabf9c6aa57376da1ca2abf89a1562b77038b7a04e52a4a0a91b";
|
repo = "django-q";
|
||||||
|
sha256 = "sha256-gFSrAl3QGoJEJfvTTvLQgViPPjeJ6BfvgEwgLLo+uAA=";
|
||||||
|
rev = "v${version}";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ poetry-core ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
django-picklefield arrow blessed django future
|
django-picklefield
|
||||||
|
arrow
|
||||||
|
blessed
|
||||||
|
django
|
||||||
|
future
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = false;
|
# fixes empty version string
|
||||||
|
# analog to https://github.com/NixOS/nixpkgs/pull/171200
|
||||||
|
patches = [
|
||||||
|
./pep-621.patch
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"django_q"
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
${pkgs.redis}/bin/redis-server &
|
||||||
|
REDIS_PID=$!
|
||||||
|
'';
|
||||||
|
|
||||||
|
postCheck = ''
|
||||||
|
kill $REDIS_PID
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
croniter
|
||||||
|
django-redis
|
||||||
|
pytest-django
|
||||||
|
pytest-mock
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
# don't bother with two more servers to test
|
||||||
|
disabledTests = [
|
||||||
|
"test_disque"
|
||||||
|
"test_mongo"
|
||||||
|
];
|
||||||
|
|
||||||
|
doCheck = !stdenv.isDarwin;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A multiprocessing distributed task queue for Django";
|
description = "A multiprocessing distributed task queue for Django";
|
||||||
homepage = "https://django-q.readthedocs.org";
|
homepage = "https://django-q.readthedocs.org";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ gador ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
32
pkgs/development/python-modules/django-q/pep-621.patch
Normal file
32
pkgs/development/python-modules/django-q/pep-621.patch
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
diff --git a/pyproject.toml b/pyproject.toml
|
||||||
|
index 9a83e90..0cdffaf 100644
|
||||||
|
--- a/pyproject.toml
|
||||||
|
+++ b/pyproject.toml
|
||||||
|
@@ -1,16 +1,12 @@
|
||||||
|
-[tool.poetry]
|
||||||
|
+[project]
|
||||||
|
name = "django-q"
|
||||||
|
version = "1.3.9"
|
||||||
|
description = "A multiprocessing distributed task queue for Django"
|
||||||
|
-authors = ["Ilan Steemers <koed00@gmail.com>"]
|
||||||
|
-maintainers = ["Ilan Steemers <koed00@gmail.com>"]
|
||||||
|
-license = "MIT"
|
||||||
|
+authors = [ { name = "Ilan Steemers", email = "koed00@gmail.com"} ]
|
||||||
|
+maintainers = [ { name = "Ilan Steemers", email = "koed00@gmail.com"} ]
|
||||||
|
+license.text = "MIT"
|
||||||
|
readme = 'README.rst'
|
||||||
|
|
||||||
|
-repository = "https://github.com/koed00/django-q"
|
||||||
|
-homepage = "https://django-q.readthedocs.org"
|
||||||
|
-documentation = "https://django-q.readthedocs.org"
|
||||||
|
-
|
||||||
|
keywords = ["django", "distributed", "multiprocessing", "queue", "scheduler"]
|
||||||
|
|
||||||
|
classifiers = [
|
||||||
|
@@ -31,7 +27,6 @@ classifiers = [
|
||||||
|
'Topic :: System :: Distributed Computing',
|
||||||
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
||||||
|
]
|
||||||
|
-include = ['CHANGELOG.md']
|
||||||
|
|
||||||
|
[tool.poetry.plugins] # Optional super table
|
Loading…
Reference in a new issue