depot/third_party/nixpkgs/pkgs/development/python-modules/django-sites/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

41 lines
702 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, django
, django-jinja
, python
}:
buildPythonPackage rec {
pname = "django-sites";
version = "0.11";
src = fetchFromGitHub {
owner = "niwinz";
repo = "django-sites";
rev = version;
hash = "sha256-MQtQC+9DyS1ICXXovbqPpkKIQ5wpuJDgq3Lcd/1kORU=";
};
propagatedBuildInputs = [
django
];
nativeCheckInputs = [
django-jinja
];
checkPhase = ''
runHook preCheck
${python.interpreter} runtests.py
runHook postCheck
'';
meta = {
description = "Alternative implementation of django sites framework";
homepage = "https://github.com/niwinz/django-sites";
license = lib.licenses.bsd3;
};
}