48 lines
		
	
	
	
		
			926 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
	
		
			926 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  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;
 | 
						|
    };
 | 
						|
  }
 |