mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-23 06:21:30 +03:00
pdm: Remove universal wheel file name test
It was broken by changes in pyproject.nix and doesn't seem to be in use anyway.
This commit is contained in:
parent
e16b6544e2
commit
e28ae15e36
@ -70,18 +70,6 @@
|
||||
in
|
||||
is_valid;
|
||||
|
||||
# matchUniversalWheelFileName = lib.match "([^-]+)-([^-]+)(-([[:digit:]][^-]*))?-([^-]+)-([^-]+)-(.+).[tar.gz|zip]";
|
||||
# name: matchUniversalWheelFileName name != null;
|
||||
|
||||
isValidUniversalWheelFilename = {filename}: let
|
||||
parsed_filename = libpyproject.pypa.parseWheelFileName filename;
|
||||
is_valid =
|
||||
(parsed_filename.languageTag == "py3")
|
||||
&& (parsed_filename.abiTag == "none")
|
||||
&& (parsed_filename.platformTags == ["any"]);
|
||||
in
|
||||
is_valid;
|
||||
|
||||
# Check that the given filename is a valid wheel for our environment.
|
||||
isUsableWheelFilename = {
|
||||
environ,
|
||||
|
@ -51,21 +51,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
tests_isValidUniversalWheel = let
|
||||
testIsValidUniversalWheelFilename = filename:
|
||||
libpdm.isValidUniversalWheelFilename {inherit filename;};
|
||||
in {
|
||||
test_isValidUniversalWheelFilename__wheel_universal = {
|
||||
expr = testIsValidUniversalWheelFilename "certifi-2023.7.22-py3-none-any.whl";
|
||||
expected = true;
|
||||
};
|
||||
|
||||
test_isValidUniversalWheelFilename__wheel_not_universal = {
|
||||
expr = testIsValidUniversalWheelFilename "certifi-2023.7.22-py3-abi3-any.whl";
|
||||
expected = false;
|
||||
};
|
||||
};
|
||||
|
||||
tests_selectExtension = let
|
||||
names = [
|
||||
"certifi-2023.7.22-py3-abi3-any.whl"
|
||||
@ -306,4 +291,4 @@
|
||||
};
|
||||
};
|
||||
in
|
||||
test_isDependencyRequired // tests_isUsableFilename // tests_isValidUniversalWheel // tests_selectExtension // tests_selectSdist // tests_preferWheelSelector // tests_preferSdistSelector // tests_parseLockData // tests_groupsWithDeps // tests_getDepsRecursively // tests_selectForGroups
|
||||
test_isDependencyRequired // tests_isUsableFilename // tests_selectExtension // tests_selectSdist // tests_preferWheelSelector // tests_preferSdistSelector // tests_parseLockData // tests_groupsWithDeps // tests_getDepsRecursively // tests_selectForGroups
|
||||
|
Loading…
Reference in New Issue
Block a user