1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/drf-yasg/default.nix
Robert Schütz 2aa6bce7d9 maintainers: remove ivegotasthma
He disappeared from GitHub and doesn't reply to emails.
2021-05-12 13:31:03 +02:00

59 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, inflection
, ruamel_yaml
, setuptools_scm
, six
, coreapi
, djangorestframework
, pytestCheckHook
, pytest-django
, datadiff
}:
buildPythonPackage rec {
pname = "drf-yasg";
version = "1.20.0";
src = fetchPypi {
inherit pname version;
sha256 = "d50f197c7f02545d0b736df88c6d5cf874f8fea2507ad85ad7de6ae5bf2d9e5a";
};
postPatch = ''
# https://github.com/axnsan12/drf-yasg/pull/710
substituteInPlace requirements/base.txt --replace packaging ""
'';
nativeBuildInputs = [
setuptools_scm
];
propagatedBuildInputs = [
six
inflection
ruamel_yaml
coreapi
djangorestframework
];
checkInputs = [
pytestCheckHook
pytest-django
datadiff
];
# ImportError: No module named 'testproj.settings'
doCheck = false;
pythonImportsCheck = [ "drf_yasg" ];
meta = with lib; {
description = "Generation of Swagger/OpenAPI schemas for Django REST Framework";
homepage = "https://github.com/axnsan12/drf-yasg";
maintainers = with maintainers; [ ];
license = licenses.bsd3;
};
}