Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / distlib / default.nix
blob1f2d17395065bb7030797f2713e799df5d08bcf7
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , fetchPypi
5 , setuptools
6 }:
8 buildPythonPackage rec {
9   pname = "distlib";
10   version = "0.3.8";
11   format = "pyproject";
13   src = fetchPypi {
14     inherit pname version;
15     hash = "sha256-FTDqE+NQAxtjEthYDdtrJ6EEJ1oxEGUjuPEjeH9JT2Q=";
16   };
18   nativeBuildInputs = [
19     setuptools
20   ];
22   postFixup = lib.optionalString (!stdenv.hostPlatform.isWindows) ''
23     find $out -name '*.exe' -delete
24   '';
26   pythonImportsCheck = [
27     "distlib"
28     "distlib.database"
29     "distlib.locators"
30     "distlib.index"
31     "distlib.markers"
32     "distlib.metadata"
33     "distlib.util"
34     "distlib.resources"
35   ];
37   # Tests use pypi.org.
38   doCheck = false;
40   meta = with lib; {
41     description = "Low-level components of distutils2/packaging";
42     homepage = "https://distlib.readthedocs.io";
43     license = licenses.psfl;
44     maintainers = with maintainers; [ lnl7 ];
45   };