Merge pull request #292874 from doronbehar/pkg/python-crate

python311Packages.crate: 0.34.0 -> 0.35.2
This commit is contained in:
Doron Behar 2024-03-03 10:30:33 +02:00 committed by GitHub
commit d420aa72bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 105 additions and 2 deletions

View file

@ -1,9 +1,12 @@
{ lib
, fetchPypi
, buildPythonPackage
, fetchpatch
, dask
, urllib3
, geojson
, verlib2
, pueblo
, pandas
, pythonOlder
, sqlalchemy
@ -13,20 +16,35 @@
buildPythonPackage rec {
pname = "crate";
version = "0.34.0";
version = "0.35.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-nEWrfCd2MQCcIM6dLkVYc/cWT5wcT/pvYaY2V3wfuto=";
hash = "sha256-4hGACtsK71hvcn8L9ggID7zR+umtTwvskBxSHBpLyME=";
};
patches = [
# Fix a pandas issue https://github.com/crate/crate-python/commit/db7ba4d0e1f4f4087739a8f9ebe1d71946333979
(fetchpatch {
url = "https://github.com/crate/crate-python/commit/db7ba4d0e1f4f4087739a8f9ebe1d71946333979.patch";
hash = "sha256-20g8T0t5gPMbK6kRJ2bzc4BNbB1Dg4hvngXNUPvxi5I=";
name = "python-crate-fix-pandas-error.patch";
# Patch doesn't apply due to other changes to these files
excludes = [
"setup.py"
"docs/by-example/sqlalchemy/dataframe.rst"
];
})
];
propagatedBuildInputs = [
urllib3
sqlalchemy
geojson
verlib2
pueblo
];
nativeCheckInputs = [

View file

@ -0,0 +1,44 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, versioningit
, platformdirs
}:
buildPythonPackage rec {
pname = "pueblo";
version = "0.0.8";
pyproject = true;
# This tarball doesn't include tests unfortuneatly, and the GitHub tarball
# could have been an alternative, but versioningit fails to detect the
# version of it correctly, even with setuptools-scm and
# SETUPTOOLS_SCM_PRETEND_VERSION = version added. Since this is a pure Python
# package, we can rely on upstream to run the tests before releasing, and it
# should work for us as well.
src = fetchPypi {
inherit pname version;
hash = "sha256-iM8Ea2ym7ZM0wInkCZ76yUjvOPRF5MVbT4WhpWz70UU=";
};
nativeBuildInputs = [
setuptools
versioningit
];
propagatedBuildInputs = [
# contextlib-chdir
# importlib-metadata
platformdirs
];
pythonImportsCheck = [ "pueblo" ];
meta = with lib; {
description = "Pueblo - a Python toolbox library";
homepage = "https://pypi.org/project/pueblo/";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ doronbehar ];
};
}

View file

@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, versioningit
}:
buildPythonPackage rec {
pname = "verlib2";
version = "0.2.0";
pyproject = true;
# This tarball doesn't include tests unfortuneatly, and the GitHub tarball
# could have been an alternative, but versioningit fails to detect the
# version of it correctly, even with setuptools-scm and
# SETUPTOOLS_SCM_PRETEND_VERSION = version added. Since this is a pure Python
# package, we can rely on upstream to run the tests before releasing, and it
# should work for us as well.
src = fetchPypi {
inherit pname version;
hash = "sha256-CrlAh8CU4nFjlI36gXyY1itr3QEibM5RiPjMPNaDRbk=";
};
nativeBuildInputs = [
setuptools
versioningit
];
pythonImportsCheck = [ "verlib2" ];
meta = with lib; {
description = "A standalone variant of packaging.version, without anything else";
homepage = "https://pypi.org/project/verlib2/";
license = licenses.bsd2;
maintainers = with maintainers; [ doronbehar ];
};
}

View file

@ -1310,6 +1310,8 @@ self: super: with self; {
paddlepaddle = callPackage ../development/python-modules/paddlepaddle { };
pueblo = callPackage ../development/python-modules/pueblo { };
pulumi = callPackage ../development/python-modules/pulumi { inherit (pkgs) pulumi; };
pulumi-aws = callPackage ../development/python-modules/pulumi-aws { };
@ -16144,6 +16146,8 @@ self: super: with self; {
verboselogs = callPackage ../development/python-modules/verboselogs { };
verlib2 = callPackage ../development/python-modules/verlib2 { };
versioneer = callPackage ../development/python-modules/versioneer { };
versionfinder = callPackage ../development/python-modules/versionfinder { };