1
0
vcp-bula-nixfiles/packages/python/nerd/default.nix

51 lines
991 B
Nix
Raw Normal View History

2022-07-12 11:04:14 +02:00
{ lib
, buildPythonApplication
, makePythonPath
, fetchFromGitHub
, python3
, hatchling
, django_4
, django-bootstrap5
, django-admin-autocomplete-filter
, django-verify-email
}:
buildPythonApplication rec {
pname = "nerd";
version = "0.0.1";
src = fetchFromGitHub {
owner = "dect-e";
repo = pname;
#rev = "v${version}";
2022-07-20 22:36:44 +02:00
rev = "245a9068c56ef32bd9efb3a23ce7d342a8f08165";
sha256 = "sha256-KWziUzb7cW4jFgh4VGqw0DSV4ebICpvuyJh/85o3Jmk=";
2022-07-12 11:04:14 +02:00
};
sourceRoot = "source/src";
format = "pyproject";
buildInputs = [ python3 hatchling ];
propagatedBuildInputs = [
django_4
django-bootstrap5
django-admin-autocomplete-filter
django-verify-email
];
postInstall = ''
python ./manage.py collectstatic
mkdir -p $out/var/lib/nerd
cp -r static $out/var/lib/nerd/
'';
passthru = {
# PYTHONPATH of all dependencies used by the package
pythonPath = python3.pkgs.makePythonPath propagatedBuildInputs;
};
doCheck = false;
}