add authens

This commit is contained in:
sinavir 2023-02-13 18:44:13 +01:00
parent 8b38e16ea9
commit 56fce7f69f
3 changed files with 28 additions and 0 deletions

12
authens.nix Normal file
View file

@ -0,0 +1,12 @@
{ lib , pythoncas, django, ldap, buildPythonPackage }:
buildPythonPackage rec {
pname = "authens";
version = "v0.1b5";
doCheck = false;
src = builtins.fetchGit {
url = "https://git.eleves.ens.fr/klub-dev-ens/authens.git";
#rev = "master";
#sha256 = "sha256-R0Nw212/BOPHfpspT5wzxtji1vxZ/JOuwr00naklWE8=";
};
propagatedBuildInputs = [ django ldap pythoncas ];
}

13
python-cas.nix Normal file
View file

@ -0,0 +1,13 @@
{ lib , requests, lxml, six, buildPythonPackage , fetchFromGitHub }:
buildPythonPackage rec {
pname = "python-cas";
version = "1.6.0";
doCheck = false;
src = fetchFromGitHub {
owner = "python-cas";
repo = "python-cas";
rev = "v1.6.0";
sha512 = "sha512-qnYzgwELUij2EdqA6H17q8vnNUsfI7DkbZSI8CCIGfXOM+cZ7vsWe7CJxzsDUw73sBPB4+zzpLxvb7tpm/IDeg==";
};
propagatedBuildInputs = [ requests lxml six ];
}

View file

@ -3,6 +3,8 @@ let
python = pkgs.python310.override {
packageOverrides = self: super: {
django = super.django_4;
authens = self.callPackage ./authens.nix {};
pythoncas = self.callPackage ./python-cas.nix {};
};
};
in
@ -13,6 +15,7 @@ pkgs.mkShell {
ps.black
ps.isort
ps.djangorestframework
ps.authens
# (ps.django-extensions.override { inherit django; })
# ps.django-compressor
]))