depot/third_party/nixpkgs/pkgs/development/python-modules/dj-database-url/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

44 lines
924 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
django,
pythonOlder,
setuptools,
typing-extensions,
}:
buildPythonPackage rec {
pname = "dj-database-url";
version = "2.2.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jazzband";
repo = "dj-database-url";
rev = "refs/tags/v${version}";
hash = "sha256-i2btutob+5R+FFPlGwRSNF01MTfxVop8xaePDHxnqLE=";
};
build-system = [ setuptools ];
dependencies = [
django
typing-extensions
];
# 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 = [ ];
};
}