504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
46 lines
894 B
Nix
46 lines
894 B
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "distlib";
|
|
version = "0.3.7";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-na/lSzSgKOr9lQOdXl1IUaE3NFQPEzEGDTHJkW5xR6g=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|