refactor: made pkgs dendrites
This commit is contained in:
parent
88041e86bd
commit
df8dd110ad
54 changed files with 1184 additions and 1058 deletions
52
modules/nixos/pkgs/python/geojson-pydantic.nix
Normal file
52
modules/nixos/pkgs/python/geojson-pydantic.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{...}: let
|
||||
package = {
|
||||
lib,
|
||||
fetchPypi,
|
||||
buildPythonPackage,
|
||||
flit-core,
|
||||
pydantic,
|
||||
geojson,
|
||||
...
|
||||
}: let
|
||||
pname = "geojson_pydantic";
|
||||
version = "2.0.0";
|
||||
in
|
||||
buildPythonPackage {
|
||||
inherit pname version;
|
||||
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-ti6LRFAt0a1Ri19zkDWoGSSnb5gMvbOk6JFu+RO+JC4=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
flit-core
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
pydantic
|
||||
geojson
|
||||
];
|
||||
|
||||
# Skip tests as they may require specific setup
|
||||
doCheck = false;
|
||||
|
||||
# Disable runtime dependencies check
|
||||
dontCheckRuntimeDeps = true;
|
||||
|
||||
# Basic imports check
|
||||
pythonImportsCheck = ["geojson_pydantic"];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pydantic models for GeoJSON objects";
|
||||
homepage = "https://github.com/developmentseed/geojson-pydantic";
|
||||
license = licenses.mit;
|
||||
maintainers = [];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
};
|
||||
in {
|
||||
flake.commonModules.python-geojson-pydantic = package;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue