depot/third_party/nixpkgs/pkgs/development/python-modules/drf-spectacular-sidecar/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

33 lines
741 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, django
}:
buildPythonPackage rec {
pname = "drf-spectacular-sidecar";
version = "2022.5.1";
src = fetchFromGitHub {
owner = "tfranzel";
repo = "drf-spectacular-sidecar";
rev = version;
sha256 = "sha256-UBuHU+F4b+plhGbvqho8/bgmq6yDUXSTnfxyD1xlDY4=";
};
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 = with maintainers; [ SuperSandro2000 ];
};
}