depot/third_party/nixpkgs/pkgs/development/python-modules/dj-database-url/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

38 lines
790 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, django
, pythonOlder
}:
buildPythonPackage rec {
pname = "dj-database-url";
version = "2.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-8gQs7+EIblOcnaOfrVrX9hFzv3lmXmm/fk3lX6iLE18=";
};
propagatedBuildInputs = [
django
];
# Tests access a DB via network
doCheck = false;
pythonImportsCheck = [
"dj_database_url"
];
meta = with lib; {
description = "Use Database URLs in your Django Application";
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; [ ];
};
}