Merge pull request #176479 from fabaff/wheel-inspect-bump

python310Packages.wheel-filename: 1.3.0 -> 1.4.1, python310Packages.wheel-inspect: 1.7.0 -> 1.7.1
This commit is contained in:
Fabian Affolter 2022-06-06 14:24:19 +02:00 committed by GitHub
commit de4ed867a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 129 additions and 68 deletions

View File

@ -1,22 +1,41 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchurl , fetchFromGitHub
, pytestCheckHook
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "entry-points-txt"; pname = "entry-points-txt";
version = "0.1.0"; version = "0.2.0";
format = "wheel"; format = "pyproject";
src = fetchurl { disabled = pythonOlder "3.6";
url = "https://github.com/jwodder/entry-points-txt/releases/download/v0.1.0/entry_points_txt-0.1.0-py3-none-any.whl";
sha256 = "29773bed3d9d337766a394e19d6f7ab0be3ed7d6f3ebb753ff0f7f48f056aa8e"; src = fetchFromGitHub {
owner = "jwodder";
repo = pname;
rev = "v${version}";
hash = "sha256-klFSt3Od7xYgenpMP4DBFoZeQanGrmtJxDm5qeZ1Psc=";
}; };
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace tox.ini \
--replace " --cov=entry_points_txt --no-cov-on-fail" ""
'';
pythonImportsCheck = [
"entry_points_txt"
];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/jwodder/entry-points-txt";
description = "Read & write entry_points.txt files"; description = "Read & write entry_points.txt files";
homepage = "https://github.com/jwodder/entry-points-txt";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = with lib.maintainers; [ ayazhafiz ]; maintainers = with maintainers; [ ayazhafiz ];
}; };
} }

View File

@ -1,27 +1,50 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchFromGitHub
, pytest-mock
, pytestCheckHook
, pythonOlder
, six , six
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "headerparser"; pname = "headerparser";
version = "0.4.0"; version = "0.4.0";
format = "pyproject";
src = fetchPypi{ disabled = pythonOlder "3.6";
inherit pname;
inherit version; src = fetchFromGitHub {
sha256 = "b8ceae4c5e6133fda666d022684e93f9b3d45815c2c7881018123c71ff28c5cc"; owner = "jwodder";
repo = pname;
rev = "v${version}";
hash = "sha256-KJJt85iC/4oBoIelB2zUJVyHSppFem/22v6F30P5nYM=";
}; };
buildInputs = [ propagatedBuildInputs = [
six six
]; ];
checkInputs = [
pytest-mock
pytestCheckHook
];
postPatch = ''
substituteInPlace tox.ini \
--replace "--cov=headerparser" "" \
--replace "--no-cov-on-fail" "" \
--replace "--flakes" ""
'';
pythonImportsCheck = [
"headerparser"
];
meta = with lib; { meta = with lib; {
description = "Module to parse key-value pairs in the style of RFC 822 (e-mail) headers";
homepage = "https://github.com/jwodder/headerparser"; homepage = "https://github.com/jwodder/headerparser";
description = "argparse for mail-style headers";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = with lib.maintainers; [ ayazhafiz ]; maintainers = with maintainers; [ ayazhafiz ];
}; };
} }

View File

@ -1,26 +1,45 @@
{ lib { lib
, buildPythonPackage
, fetchurl
, attrs , attrs
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "wheel-filename"; pname = "wheel-filename";
version = "1.3.0"; version = "1.4.1";
format = "wheel"; format = "pyproject";
src = fetchurl { disabled = pythonOlder "3.6";
url = "https://github.com/jwodder/wheel-filename/releases/download/v1.1.0/wheel_filename-1.1.0-py3-none-any.whl";
sha256 = "0aee45553f34e3a1b8a5db64aa832326f13c138b7f925a53daf96f984f9e6a38"; src = fetchFromGitHub {
owner = "jwodder";
repo = pname;
rev = "v${version}";
hash = "sha256-M3XGHG733X5qKuMS6mvFSFHYOwWPaBMXw+w0eYo6ByE=";
}; };
buildInputs = [ buildInputs = [
attrs attrs
]; ];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace tox.ini \
--replace " --cov=wheel_filename --no-cov-on-fail" ""
'';
pythonImportsCheck = [
"wheel_filename"
];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/jwodder/wheel-filename";
description = "Parse wheel filenames"; description = "Parse wheel filenames";
homepage = "https://github.com/jwodder/wheel-filename";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = with lib.maintainers; [ ayazhafiz ]; maintainers = with lib.maintainers; [ ayazhafiz ];
}; };

View File

@ -1,65 +1,65 @@
{ lib { lib
, attrs
, buildPythonPackage , buildPythonPackage
, fetchurl , entry-points-txt
, bleach, docutils, pygments, six , fetchFromGitHub
, attrs, entry-points-txt, headerparser, packaging, wheel-filename , headerparser
, jsonschema
, packaging
, pytestCheckHook
, pythonOlder
, readme_renderer
, wheel-filename
}: }:
# wheel-filename is stuck on readme_renderer~=24.0.0, but the upstream is at a buildPythonPackage rec {
# future version.
let readme_renderer_24 = buildPythonPackage rec {
pname = "readme_renderer";
version = "24.0.0";
format = "wheel";
src = fetchurl {
url = "https://files.pythonhosted.org/packages/c3/7e/d1aae793900f36b097cbfcc5e70eef82b5b56423a6c52a36dce51fedd8f0/readme_renderer-24.0-py2.py3-none-any.whl";
sha256 = "c8532b79afc0375a85f10433eca157d6b50f7d6990f337fa498c96cd4bfc203d";
};
doCheck = false;
buildInputs = [
bleach
docutils
pygments
six
];
meta = with lib; {
description = "Python library for rendering readme descriptions";
homepage = "https://github.com/pypa/readme_renderer";
license = with licenses; [ asl20 ];
maintainers = with lib.maintainers; [ ayazhafiz ];
};
};
in buildPythonPackage rec {
version = "1.7.0";
pname = "wheel-inspect"; pname = "wheel-inspect";
format = "wheel"; version = "1.7.1";
format = "pyproject";
src = fetchurl { disabled = pythonOlder "3.6";
url = "https://github.com/jwodder/wheel-inspect/releases/download/v1.7.0/wheel_inspect-1.7.0-py3-none-any.whl";
sha256 = "69b34de1f4464ddfc76280c4563e4afc644de2c88e3ae6882f030afdad3d73e4"; src = fetchFromGitHub {
owner = "jwodder";
repo = pname;
rev = "v${version}";
hash = "sha256-pB9Rh+A7GlxnYuka2mTSBoxpoyYCzoaMPVgsHDlpos0=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
attrs attrs
bleach
docutils
entry-points-txt entry-points-txt
headerparser headerparser
packaging packaging
pygments readme_renderer
readme_renderer_24
wheel-filename wheel-filename
]; ];
checkInputs = [
jsonschema
pytestCheckHook
];
postPatch = ''
substituteInPlace tox.ini \
--replace " --cov=wheel_inspect --no-cov-on-fail" ""
substituteInPlace setup.cfg \
--replace "entry-points-txt ~= 0.1.0" "entry-points-txt >= 0.1.0"
'';
pythonImportsCheck = [
"wheel_inspect"
];
pytestFlagsArray = [
"-W"
"ignore::DeprecationWarning"
];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/jwodder/wheel-inspect";
description = "Extract information from wheels"; description = "Extract information from wheels";
homepage = "https://github.com/jwodder/wheel-inspect";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = with lib.maintainers; [ ayazhafiz ]; maintainers = with maintainers; [ ayazhafiz ];
}; };
} }