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