Compare commits

..

2 commits

Author SHA1 Message Date
979c113fc4
feat(python): add django-cas-ng
no pythonImportsCheck :(
2024-10-25 22:14:45 +02:00
d3026a1291
feat(python): add python-cas 2024-10-25 22:14:00 +02:00
2 changed files with 90 additions and 0 deletions

View file

@ -0,0 +1,47 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
flake8,
lxml,
python-cas,
requests,
django,
}:
buildPythonPackage rec {
pname = "django-cas-ng";
version = "5.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "django-cas-ng";
repo = "django-cas-ng";
rev = "v${version}";
hash = "sha256-jGoros8HbSWCtWvw2ilttm0MtWtEZDUy5KWNfczJvWk=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
flake8
lxml
python-cas
requests
django
];
# pythonImportsCheck = [ "django_cas_ng" ];
meta = with lib; {
description = "Django CAS 1.0/2.0/3.0 client authentication library, support Django 2.0, 2.1, 2.2, 3.0 and Python 3.5";
homepage = "https://github.com/django-cas-ng/django-cas-ng";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}

View file

@ -0,0 +1,43 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
lxml,
requests,
six,
}:
buildPythonPackage rec {
pname = "python-cas";
version = "1.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "python-cas";
repo = "python-cas";
rev = "v${version}";
hash = "sha256-0lpjG/Sma0tJGtahiFE1CjvTyswrBUp+F6f1S65b+lk=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
lxml
requests
six
];
pythonImportsCheck = [ "cas" ];
meta = with lib; {
description = "Python CAS (Central Authentication Service) client library support CAS 1.0/2.0/3.0";
homepage = "https://github.com/python-cas/python-cas";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}