summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pathlib2/default.nix
blob: afb3a3af3a581fcc04287e3e47568dd1199cc128 (plain)
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,
  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
  ];

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