about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pathlib2/default.nix
blob: ab1948005fe88e37c41cd97bf547cc3315dbe871 (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
{ lib
, buildPythonPackage
, fetchPypi
, six
, pythonOlder
, scandir ? null
, glibcLocales
, typing
}:

buildPythonPackage rec {
  pname = "pathlib2";
  version = "2.3.7.post1";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-n+DtrYmLg8DD4ZnIQrJ+0hZkXS4Xd1ey3Wc4TUETxkE=";
  };

  propagatedBuildInputs = [ six ]
    ++ lib.optionals (pythonOlder "3.5") [ scandir typing ];
  nativeCheckInputs = [ glibcLocales ];

  preCheck = ''
    export LC_ALL="en_US.UTF-8"
  '';

  meta = with lib; {
    description = "This module offers classes representing filesystem paths with semantics appropriate for different operating systems.";
    homepage = "https://pypi.org/project/pathlib2/";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ ];
  };
}