Compare commits
2 commits
5b975b9895
...
979c113fc4
Author | SHA1 | Date | |
---|---|---|---|
979c113fc4 | |||
d3026a1291 |
2 changed files with 90 additions and 0 deletions
47
python-pkgs/django-cas-ng.nix
Normal file
47
python-pkgs/django-cas-ng.nix
Normal 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; [ ];
|
||||
};
|
||||
}
|
43
python-pkgs/python-cas.nix
Normal file
43
python-pkgs/python-cas.nix
Normal 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; [ ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue