mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-05 12:19:57 +00:00
40 lines
962 B
Nix
40 lines
962 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
django,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "drf-spectacular-sidecar";
|
|
# Upstream does automated monthly releases even if there are no changes at all
|
|
# https://github.com/tfranzel/drf-spectacular-sidecar/issues/17
|
|
# nixpkgs-update: no auto update
|
|
version = "2026.10.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tfranzel";
|
|
repo = "drf-spectacular-sidecar";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-e5EQBmUmurUxmwFp4a2lRw3DBIAPyiIaETtRakZpSyY=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ django ];
|
|
|
|
# no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "drf_spectacular_sidecar" ];
|
|
|
|
meta = {
|
|
description = "Serve self-contained distribution builds of Swagger UI and Redoc with Django";
|
|
homepage = "https://github.com/tfranzel/drf-spectacular-sidecar";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
})
|