diff options
Diffstat (limited to 'pkgs/development/python-modules/dj-database-url/default.nix')
-rw-r--r-- | pkgs/development/python-modules/dj-database-url/default.nix | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/dj-database-url/default.nix b/pkgs/development/python-modules/dj-database-url/default.nix index cbf1502bfde99..aee96dfd6cc7c 100644 --- a/pkgs/development/python-modules/dj-database-url/default.nix +++ b/pkgs/development/python-modules/dj-database-url/default.nix @@ -1,24 +1,33 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, django, pythonOlder, + setuptools, + typing-extensions, }: buildPythonPackage rec { pname = "dj-database-url"; - version = "2.1.0"; - format = "setuptools"; + version = "2.2.0"; + pyproject = true; disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version; - hash = "sha256-8gQs7+EIblOcnaOfrVrX9hFzv3lmXmm/fk3lX6iLE18="; + src = fetchFromGitHub { + owner = "jazzband"; + repo = "dj-database-url"; + rev = "refs/tags/v${version}"; + hash = "sha256-i2btutob+5R+FFPlGwRSNF01MTfxVop8xaePDHxnqLE="; }; - propagatedBuildInputs = [ django ]; + build-system = [ setuptools ]; + + dependencies = [ + django + typing-extensions + ]; # Tests access a DB via network doCheck = false; @@ -30,6 +39,6 @@ buildPythonPackage rec { homepage = "https://github.com/jazzband/dj-database-url"; changelog = "https://github.com/jazzband/dj-database-url/blob/v${version}/CHANGELOG.md"; license = licenses.bsd2; - maintainers = with maintainers; [ ]; + maintainers = [ ]; }; } |