feat(python): add python-cas
This commit is contained in:
parent
5b975b9895
commit
d3026a1291
1 changed files with 43 additions and 0 deletions
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