nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 django,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "drf-spectacular-sidecar";
11 version = "2026.1.1";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "tfranzel";
16 repo = "drf-spectacular-sidecar";
17 tag = version;
18 hash = "sha256-8+KfFyGcwA99mSZi95uOqOqzcJUa1GXu0BYva+hJDOw=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [ django ];
24
25 # no tests
26 doCheck = false;
27
28 pythonImportsCheck = [ "drf_spectacular_sidecar" ];
29
30 meta = {
31 description = "Serve self-contained distribution builds of Swagger UI and Redoc with Django";
32 homepage = "https://github.com/tfranzel/drf-spectacular-sidecar";
33 license = lib.licenses.bsd3;
34 maintainers = [ ];
35 };
36}