infrastructure/machines/web02/cas-eleves/packages/django-cas-server/default.nix
Tom Hubrecht 5668b6bbfd
Some checks failed
build configuration / build_storage01 (push) Successful in 1m14s
build configuration / build_vault01 (push) Successful in 1m15s
build configuration / build_compute01 (push) Successful in 1m17s
build configuration / build_rescue01 (push) Successful in 1m18s
build configuration / build_web01 (push) Successful in 1m30s
lint / check (push) Successful in 24s
build configuration / build_web02 (push) Failing after 2m13s
build configuration / push_to_cache (push) Has been skipped
feat(web02): Deploy a CAS server on cas-eleves.dgnum.eu
2024-07-02 20:54:45 +02:00

64 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
pytestCheckHook,
fetchFromGitHub,
setuptools,
wheel,
django,
lxml,
requests,
requests-futures,
six,
pytest-django,
pytest-env,
pytest-runner,
mock,
}:
buildPythonPackage rec {
pname = "django-cas-server";
version = "unstable-2024-04-13";
format = "pyproject";
src = fetchFromGitHub {
owner = "nitmir";
repo = "django-cas-server";
rev = "a04477d34eedba4fcc91f00a22689defd3f22a7f";
hash = "sha256-K6SKnYBiA1TrSdDSodYJoz1Bk20PsNo2g0dvs4XdmY0=";
};
patches = [ ./01-pytest.patch ];
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
django
lxml
requests
requests-futures
setuptools
six
];
nativeCheckInputs = [
mock
pytestCheckHook
pytest-django
pytest-env
pytest-runner
];
pythonImportsCheck = [ "cas_server" ];
meta = with lib; {
description = "A Django Central Authentication Service server implementing the CAS Protocol 3.0 Specification";
homepage = "https://github.com/nitmir/django-cas-server";
changelog = "https://github.com/nitmir/django-cas-server/blob/${src.rev}/CHANGELOG.rst";
license = licenses.gpl3Only;
maintainers = [ ];
};
}