depot/third_party/nixpkgs/pkgs/development/python-modules/distlib/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

46 lines
896 B
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, setuptools
}:
buildPythonPackage rec {
pname = "distlib";
version = "0.3.6";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-FLrS2bBNOjYSesl/MLEqGSaPIRBj2PjuT0cQiJbhG0Y=";
};
nativeBuildInputs = [
setuptools
];
postFixup = lib.optionalString (!stdenv.targetPlatform.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 ];
};
}