forked from Fediversity/Fediversity
40 lines
657 B
Nix
40 lines
657 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
django,
|
|
pydantic,
|
|
hatchling,
|
|
djangorestframework,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "drf-pydantic";
|
|
version = "v2.7.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "georgebv";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-ABtSoxj/+HHq4hj4Yb6bEiyOl00TCO/9tvBzhv6afxM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
hatchling
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
django
|
|
pydantic
|
|
djangorestframework
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "";
|
|
homepage = "https://github.com/${src.owner}/${pname}";
|
|
license = licenses.mit;
|
|
};
|
|
}
|