Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, django 5}: 6 7buildPythonPackage rec { 8 pname = "drf-spectacular-sidecar"; 9 version = "2023.3.1"; 10 format = "setuptools"; 11 12 src = fetchFromGitHub { 13 owner = "tfranzel"; 14 repo = "drf-spectacular-sidecar"; 15 rev = version; 16 hash = "sha256-UTH6t/znN4nYnqDhtFFxXoBXX8Zo19pJE9iDsvw7bGE="; 17 }; 18 19 propagatedBuildInputs = [ 20 django 21 ]; 22 23 # no tests 24 doCheck = false; 25 26 pythonImportsCheck = [ "drf_spectacular_sidecar" ]; 27 28 meta = with lib; { 29 description = "Serve self-contained distribution builds of Swagger UI and Redoc with Django"; 30 homepage = "https://github.com/tfranzel/drf-spectacular-sidecar"; 31 license = licenses.bsd3; 32 maintainers = with maintainers; [ SuperSandro2000 ]; 33 }; 34}