nixify
This commit is contained in:
34
default.nix
Normal file
34
default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
packageName,
|
||||
version,
|
||||
|
||||
buildPythonPackage,
|
||||
|
||||
# build-system
|
||||
setuptools_scm,
|
||||
|
||||
# dependencies
|
||||
pydantic,
|
||||
typing-extensions,
|
||||
}:
|
||||
|
||||
let
|
||||
pname = (builtins.replaceStrings ["-"] ["_"] packageName);
|
||||
in buildPythonPackage rec {
|
||||
inherit pname version;
|
||||
pyproject = true;
|
||||
build-system = [ setuptools_scm ];
|
||||
src = ./.;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pydantic
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ pname ];
|
||||
|
||||
meta = {
|
||||
description = "Add support for deserialization of pydantic child models";
|
||||
homepage = "https://git.chaosbit.de/bit/pydanticuuidmodel";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user