1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, djangorestframework 5}: 6 7buildPythonPackage rec { 8 pname = "djangorestframework-dataclasses"; 9 version = "1.1.1"; 10 11 src = fetchFromGitHub { 12 owner = "oxan"; 13 repo = "djangorestframework-dataclasses"; 14 rev = "v${version}"; 15 sha256 = "sha256-wXgA/4Dik6yG0nKl9GbrHgb2lhrPsgS23+cEyaD9MRY="; 16 }; 17 18 postPatch = '' 19 patchShebangs manage.py 20 ''; 21 22 propagatedBuildInputs = [ 23 djangorestframework 24 ]; 25 26 checkPhase = '' 27 ./manage.py test 28 ''; 29 30 pythonImportsCheck = [ "rest_framework_dataclasses" ]; 31 32 meta = with lib; { 33 description = " Dataclasses serializer for Django REST framework"; 34 homepage = "https://github.com/oxan/djangorestframework-dataclasses"; 35 license = licenses.bsd3; 36 maintainers = with maintainers; [ SuperSandro2000 ]; 37 }; 38}