about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/importlib-resources/2.nix
blob: 1034c3111306bf68d90cf72ba2046c8bd0d034e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, importlib-metadata
, typing
, singledispatch
, python
}:

buildPythonPackage rec {
  pname = "importlib-resources";
  version = "3.3.1";

  src = fetchPypi {
    pname = "importlib_resources";
    inherit version;
    sha256 = "0ed250dbd291947d1a298e89f39afcc477d5a6624770503034b72588601bcc05";
  };

  nativeBuildInputs = [ setuptools-scm ];
  propagatedBuildInputs = [
    importlib-metadata
    singledispatch
    typing
  ];

  checkPhase = ''
    ${python.interpreter} -m unittest discover
  '';

  meta = with lib; {
    description = "Read resources from Python packages";
    homepage = "https://importlib-resources.readthedocs.io/";
    license = licenses.asl20;
    maintainers = [ ];
  };
}