fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
45 lines
895 B
Nix
45 lines
895 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "distlib";
|
|
version = "0.3.8";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-FTDqE+NQAxtjEthYDdtrJ6EEJ1oxEGUjuPEjeH9JT2Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
postFixup = lib.optionalString (!stdenv.hostPlatform.isWindows) ''
|
|
find $out -name '*.exe' -delete
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"distlib"
|
|
"distlib.database"
|
|
"distlib.locators"
|
|
"distlib.index"
|
|
"distlib.markers"
|
|
"distlib.metadata"
|
|
"distlib.util"
|
|
"distlib.resources"
|
|
];
|
|
|
|
# Tests use pypi.org.
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Low-level components of distutils2/packaging";
|
|
homepage = "https://distlib.readthedocs.io";
|
|
license = licenses.psfl;
|
|
maintainers = with maintainers; [ lnl7 ];
|
|
};
|
|
}
|