python310Packages.wktutils: init at 1.1.4
This commit is contained in:
parent
67512331eb
commit
218093d36a
2 changed files with 68 additions and 0 deletions
66
pkgs/development/python-modules/wktutils/default.nix
Normal file
66
pkgs/development/python-modules/wktutils/default.nix
Normal file
|
@ -0,0 +1,66 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, dateparser
|
||||
, defusedxml
|
||||
, fetchFromGitHub
|
||||
, fiona
|
||||
, geomet
|
||||
, geopandas
|
||||
, kml2geojson
|
||||
, pyshp
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
, regex
|
||||
, requests
|
||||
, shapely
|
||||
, scikit-learn
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "wktutils";
|
||||
version = "1.1.4";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "asfadmin";
|
||||
repo = "Discovery-WKTUtils";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-/gcMnZ+wWflbvLlyfIaEoSYaLrsosMyD60ei/5Iis6E=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dateparser
|
||||
defusedxml
|
||||
fiona
|
||||
geomet
|
||||
geopandas
|
||||
kml2geojson
|
||||
pyshp
|
||||
pyyaml
|
||||
regex
|
||||
requests
|
||||
shapely
|
||||
scikit-learn
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "sklearn" "scikit-learn"
|
||||
'';
|
||||
|
||||
# Module doesn't have tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"WKTUtils"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Collection of tools for handling WKTs";
|
||||
homepage = "https://github.com/asfadmin/Discovery-WKTUtils";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -11200,6 +11200,8 @@ in {
|
|||
|
||||
winsspi = callPackage ../development/python-modules/winsspi { };
|
||||
|
||||
wktutils = callPackage ../development/python-modules/wktutils { };
|
||||
|
||||
wled = callPackage ../development/python-modules/wled { };
|
||||
|
||||
woob = callPackage ../development/python-modules/woob { };
|
||||
|
|
Loading…
Reference in a new issue