2022-09-30 11:47:45 +00:00
|
|
|
{ lib
|
2023-04-12 12:48:02 +00:00
|
|
|
, stdenv
|
2022-09-30 11:47:45 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "distlib";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "0.3.6";
|
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-30 11:47:45 +00:00
|
|
|
hash = "sha256-FLrS2bBNOjYSesl/MLEqGSaPIRBj2PjuT0cQiJbhG0Y=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
postFixup = lib.optionalString (!stdenv.targetPlatform.isWindows) ''
|
|
|
|
find $out -name '*.exe' -delete
|
|
|
|
'';
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"distlib"
|
|
|
|
"distlib.database"
|
|
|
|
"distlib.locators"
|
|
|
|
"distlib.index"
|
|
|
|
"distlib.markers"
|
|
|
|
"distlib.metadata"
|
|
|
|
"distlib.util"
|
|
|
|
"distlib.resources"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# Tests use pypi.org.
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Low-level components of distutils2/packaging";
|
|
|
|
homepage = "https://distlib.readthedocs.io";
|
|
|
|
license = licenses.psfl;
|
|
|
|
maintainers = with maintainers; [ lnl7 ];
|
|
|
|
};
|
|
|
|
}
|