package nerd
This commit is contained in:
@@ -4,4 +4,8 @@ self: super: {
|
||||
ywsd = self.callPackage ./ywsd { };
|
||||
mitel-ommclient2 = self.callPackage ./mitel-ommclient2 { };
|
||||
fieldpoc = self.callPackage ./fieldpoc { };
|
||||
django-admin-autocomplete-filter = self.callPackage ./django-admin-autocomplete-filter { };
|
||||
django-bootstrap5 = self.callPackage ./django-bootstrap5 { };
|
||||
django-verify-email = self.callPackage ./django-verify-email { };
|
||||
nerd = self.callPackage ./nerd { };
|
||||
}
|
||||
|
23
packages/python/django-admin-autocomplete-filter/default.nix
Normal file
23
packages/python/django-admin-autocomplete-filter/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, django
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-admin-autocomplete-filter";
|
||||
version = "0.7.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "5a8c9a7016e03104627b80b40811dcc567f26759971e4407f933951546367ba0";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
django
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "admin_auto_filters" ];
|
||||
|
||||
doCheck = false;
|
||||
}
|
28
packages/python/django-bootstrap5/default.nix
Normal file
28
packages/python/django-bootstrap5/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, django
|
||||
, beautifulsoup4
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-bootstrap5";
|
||||
version = "21.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "35086341881780a44b2e27255894f6029fc5ef75e5a0ec8ebd82f47a5184fa73";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
django
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
beautifulsoup4
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "django_bootstrap5" ];
|
||||
|
||||
doCheck = false;
|
||||
}
|
21
packages/python/django-verify-email/default.nix
Normal file
21
packages/python/django-verify-email/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, django
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Django-Verify-Email";
|
||||
version = "1.0.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "05d296a6a7ef03db07327b076093373e086d9e76e7fa9970a033e4e01168197f";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
django
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
}
|
50
packages/python/nerd/default.nix
Normal file
50
packages/python/nerd/default.nix
Normal file
@@ -0,0 +1,50 @@
|
||||
{ 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}";
|
||||
rev = "8b8becaeb9d77c3ff2c5dadb1d5be6d66b6ed5f2";
|
||||
sha256 = "sha256-R2kOECPtfTTnbqjujGR1AeNGyXNswqC7UJtQu+W4pXo=";
|
||||
};
|
||||
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user