feat(nix): Add dependencies

This commit is contained in:
Tom Hubrecht 2024-07-03 14:36:27 +02:00
parent 526bc7b7d8
commit be7ef236be
3 changed files with 83 additions and 0 deletions

View file

@ -15,9 +15,14 @@
ps.ldap3 ps.ldap3
# Local packages # Local packages
(ps.callPackage ./nix/django-browser-reload { })
(ps.callPackage ./nix/django-bulma-forms { })
(ps.callPackage ./nix/django-cas-server { }) (ps.callPackage ./nix/django-cas-server { })
(ps.callPackage ./nix/loadcredential { }) (ps.callPackage ./nix/loadcredential { })
])) ]))
pkgs.gettext
pkgs.gtranslator
]; ];
env = { env = {

View file

@ -0,0 +1,42 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
asgiref,
django,
}:
buildPythonPackage rec {
pname = "django-browser-reload";
version = "1.12.1";
pyproject = true;
src = fetchFromGitHub {
owner = "adamchainz";
repo = "django-browser-reload";
rev = version;
hash = "sha256-IDIkAl6YYI3isDvpzCtAu4fLSr2gbjEvVW+K1WBDPbo=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
asgiref
django
];
pythonImportsCheck = [ "django_browser_reload" ];
meta = with lib; {
description = "Automatically reload your browser in development";
homepage = "https://github.com/adamchainz/django-browser-reload";
changelog = "https://github.com/adamchainz/django-browser-reload/blob/${src.rev}/CHANGELOG.rst";
license = licenses.mit;
maintainers = [ ]; # with maintainers; [ thubrecht ];
};
}

View file

@ -0,0 +1,36 @@
{
lib,
buildPythonPackage,
fetchgit,
setuptools,
setuptools-scm,
wheel,
django,
}:
buildPythonPackage rec {
pname = "django-bulma-forms";
version = "0.1.4";
pyproject = true;
src = fetchgit {
url = "https://git.hubrecht.ovh/hubrecht/django-bulma-forms";
rev = "v${version}";
hash = "sha256-4KTMXx3YxDxB4/YH14pJnNYtpOGXeDmD+gcbrUHwD/w=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
wheel
];
propagatedBuildInputs = [ django ];
meta = with lib; {
description = "";
homepage = "https://git.hubrecht.ovh/hubrecht/django-bulma-forms";
license = licenses.eupl12;
maintainers = [ ]; # with maintainers; [ thubrecht ];
};
}