2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
django,
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "drf-spectacular-sidecar";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "2023.9.1";
|
2023-03-15 16:39:30 +00:00
|
|
|
format = "setuptools";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tfranzel";
|
|
|
|
repo = "drf-spectacular-sidecar";
|
|
|
|
rev = version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-EoQKbxzXEuKC50/W1/tBB2wASJZmNNwg9r1qhIB4Ws8=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ django ];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "drf_spectacular_sidecar" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Serve self-contained distribution builds of Swagger UI and Redoc with Django";
|
|
|
|
homepage = "https://github.com/tfranzel/drf-spectacular-sidecar";
|
|
|
|
license = licenses.bsd3;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
}
|