5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
33 lines
730 B
Nix
33 lines
730 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
django,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "drf-spectacular-sidecar";
|
|
version = "2023.9.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tfranzel";
|
|
repo = "drf-spectacular-sidecar";
|
|
rev = version;
|
|
hash = "sha256-EoQKbxzXEuKC50/W1/tBB2wASJZmNNwg9r1qhIB4Ws8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
# 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;
|
|
maintainers = [ ];
|
|
};
|
|
}
|