1{ lib
2, appdirs
3, buildPythonPackage
4, fetchFromGitHub
5, platformdirs
6, pytest-mock
7, pytestCheckHook
8, pythonOlder
9, setuptools-scm
10}:
11
12buildPythonPackage rec {
13 pname = "platformdirs";
14 version = "2.4.0";
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = pname;
19 repo = pname;
20 rev = version;
21 sha256 = "sha256-Ox1CVq2M2eddZtpuZx0IfvuOm6RPsAs27WkMdZSeh0E=";
22 };
23
24 SETUPTOOLS_SCM_PRETEND_VERSION = version;
25
26 nativeBuildInputs = [
27 setuptools-scm
28 ];
29
30 checkInputs = [
31 appdirs
32 pytest-mock
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [ "platformdirs" ];
37
38 meta = with lib; {
39 description = "Python module for determining appropriate platform-specific directories";
40 homepage = "https://platformdirs.readthedocs.io/";
41 license = licenses.mit;
42 maintainers = with maintainers; [ fab ];
43 };
44}