1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/importlib-metadata/default.nix
2018-12-03 16:50:40 +01:00

29 lines
635 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pathlib2
, contextlib2
, isPy3k
, importlib-resources
}:
buildPythonPackage rec {
pname = "importlib-metadata";
version = "0.6";
src = fetchPypi {
pname = "importlib_metadata";
inherit version;
sha256 = "36b02c84f9001adf65209fefdf951be8e9014a95eab9938c0779ad5670359b1c";
};
propagatedBuildInputs = [] ++ lib.optionals (!isPy3k) [ pathlib2 contextlib2 ];
checkInputs = [ importlib-resources ];
meta = with lib; {
description = "Read metadata from Python packages";
homepage = https://importlib-metadata.readthedocs.io/;
license = licenses.asl20;
};
}