depot/third_party/nixpkgs/pkgs/development/python-modules/dj-database-url/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

38 lines
790 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, django
, pythonOlder
}:
buildPythonPackage rec {
pname = "dj-database-url";
version = "2.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-o1qfD0N3XKb5DYGdxFYjPve8x2tHN31dkIt1x+syBiQ=";
};
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; [ ];
};
}