Files
nixpkgs/pkgs/development/python-modules/djangorestframework-dataclasses/default.nix
T
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

42 lines
878 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
djangorestframework,
setuptools,
}:
buildPythonPackage rec {
pname = "djangorestframework-dataclasses";
version = "1.3.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "oxan";
repo = "djangorestframework-dataclasses";
rev = "refs/tags/v${version}";
hash = "sha256-12EdSaGpsX0qDXgJ2QWYj6qAUbsrITQjWowk+gJFwwY=";
};
nativeBuildInputs = [ setuptools ];
postPatch = ''
patchShebangs manage.py
'';
propagatedBuildInputs = [ djangorestframework ];
checkPhase = ''
./manage.py test
'';
pythonImportsCheck = [ "rest_framework_dataclasses" ];
meta = with lib; {
description = " Dataclasses serializer for Django REST framework";
homepage = "https://github.com/oxan/djangorestframework-dataclasses";
license = licenses.bsd3;
maintainers = [ ];
};
}