depot/third_party/nixpkgs/pkgs/development/python-modules/drf-spectacular-sidecar/default.nix
Default email dae973cb59 Project import generated by Copybara.
GitOrigin-RevId: c90c4025bb6e0c4eaf438128a3b2640314b1c58d
2023-03-08 18:32:21 +02:00

33 lines
741 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, django
}:
buildPythonPackage rec {
pname = "drf-spectacular-sidecar";
version = "2023.3.1";
src = fetchFromGitHub {
owner = "tfranzel";
repo = "drf-spectacular-sidecar";
rev = version;
sha256 = "sha256-UTH6t/znN4nYnqDhtFFxXoBXX8Zo19pJE9iDsvw7bGE=";
};
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 ];
};
}