From d3026a1291e33edfe9db31054b5f7f14da3966c4 Mon Sep 17 00:00:00 2001 From: catvayor Date: Fri, 25 Oct 2024 22:14:00 +0200 Subject: [PATCH] feat(python): add python-cas --- python-pkgs/python-cas.nix | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 python-pkgs/python-cas.nix diff --git a/python-pkgs/python-cas.nix b/python-pkgs/python-cas.nix new file mode 100644 index 0000000..c8c2ac7 --- /dev/null +++ b/python-pkgs/python-cas.nix @@ -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; [ ]; + }; +}