python3Packages.orderedmultidict: modernize (#418591)

dotlambda 780c25a3 4725dc1d

Changed files
+29 -22
pkgs
development
python-modules
furl
orderedmultidict
+16 -13
pkgs/development/python-modules/furl/default.nix
···
{
lib,
buildPythonPackage,
-
fetchPypi,
-
pythonAtLeast,
-
flake8,
orderedmultidict,
pytestCheckHook,
six,
}:
buildPythonPackage rec {
pname = "furl";
version = "2.1.4";
-
format = "setuptools";
-
src = fetchPypi {
-
inherit pname version;
-
sha256 = "sha256-h3ZXUBJmySkmlzn7X1mAU0pBq9a7q8s2fBNtHTsqYBU=";
};
# With python 3.11.4, invalid IPv6 address does throw ValueError
# https://github.com/gruns/furl/issues/164#issuecomment-1595637359
postPatch = ''
substituteInPlace tests/test_furl.py \
-
--replace '[0:0:0:0:0:0:0:1:1:1:1:1:1:1:1:9999999999999]' '[2001:db8::9999]'
'';
-
propagatedBuildInputs = [
orderedmultidict
six
];
nativeCheckInputs = [
-
flake8
pytestCheckHook
];
···
pythonImportsCheck = [ "furl" ];
-
meta = with lib; {
description = "Python library that makes parsing and manipulating URLs easy";
homepage = "https://github.com/gruns/furl";
-
license = licenses.unlicense;
-
maintainers = with maintainers; [ vanzef ];
};
}
···
{
lib,
buildPythonPackage,
+
fetchFromGitHub,
orderedmultidict,
pytestCheckHook,
+
setuptools,
six,
}:
buildPythonPackage rec {
pname = "furl";
version = "2.1.4";
+
pyproject = true;
+
src = fetchFromGitHub {
+
owner = "gruns";
+
repo = "furl";
+
tag = "v${version}";
+
hash = "sha256-NRkOJlluZjscM4ZhxHoXIzV2A0+mrkaw7rcxfklGCHs=";
};
# With python 3.11.4, invalid IPv6 address does throw ValueError
# https://github.com/gruns/furl/issues/164#issuecomment-1595637359
postPatch = ''
substituteInPlace tests/test_furl.py \
+
--replace-fail '[0:0:0:0:0:0:0:1:1:1:1:1:1:1:1:9999999999999]' '[2001:db8::9999]'
'';
+
build-system = [ setuptools ];
+
+
dependencies = [
orderedmultidict
six
];
nativeCheckInputs = [
pytestCheckHook
];
···
pythonImportsCheck = [ "furl" ];
+
meta = {
+
changelog = "https://github.com/gruns/furl/releases/tag/${src.tag}";
description = "Python library that makes parsing and manipulating URLs easy";
homepage = "https://github.com/gruns/furl";
+
license = lib.licenses.unlicense;
+
maintainers = with lib.maintainers; [ vanzef ];
};
}
+13 -9
pkgs/development/python-modules/orderedmultidict/default.nix
···
buildPythonPackage,
fetchPypi,
flake8,
six,
-
pythonOlder,
-
importlib-metadata,
}:
buildPythonPackage rec {
pname = "orderedmultidict";
version = "1.0.1";
-
format = "setuptools";
src = fetchPypi {
inherit pname version;
-
sha256 = "1bc2v0yflsxjyyjx4q9wqx0j3bvzcw9z87d5pz4iqac7bsxhn1q4";
};
-
nativeCheckInputs = [ flake8 ];
-
propagatedBuildInputs = [ six ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
-
meta = with lib; {
description = "Ordered Multivalue Dictionary";
homepage = "https://github.com/gruns/orderedmultidict";
-
license = licenses.publicDomain;
-
maintainers = with maintainers; [ vanzef ];
};
}
···
buildPythonPackage,
fetchPypi,
flake8,
+
pytestCheckHook,
+
setuptools,
six,
}:
buildPythonPackage rec {
pname = "orderedmultidict";
version = "1.0.1";
+
pyproject = true;
src = fetchPypi {
inherit pname version;
+
hash = "sha256-BAcLu16HKRzJv6Ud9BNnf68hQcc8YdKl97Jr6jzYgq0=";
};
+
build-system = [ setuptools ];
+
dependencies = [ six ];
+
pythonImportsCheck = [ "orderedmultidict" ];
+
+
nativeCheckInputs = [ pytestCheckHook ];
+
+
meta = {
description = "Ordered Multivalue Dictionary";
homepage = "https://github.com/gruns/orderedmultidict";
+
license = lib.licenses.unlicense;
+
maintainers = with lib.maintainers; [ vanzef ];
};
}