blob: b2eb4094c92725f6e92858240d6480c925e021c1 (
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
39
40
41
42
43
|
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "xdg-base-dirs";
version = "6.0.1";
format = "pyproject";
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "srstevenson";
repo = "xdg-base-dirs";
rev = version;
hash = "sha256-nbdF1tjVqlxwiGW0pySS6HyJbmNuQ7mVdQYfhofO4Dk=";
};
nativeBuildInputs = [
poetry-core
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "xdg_base_dirs" ];
# remove coverage flags from pytest config
postPatch = ''
sed -i /addopts/d pyproject.toml
'';
meta = with lib; {
description = "An implementation of the XDG Base Directory Specification in Python";
homepage = "https://github.com/srstevenson/xdg-base-dirs";
changelog = "https://github.com/srstevenson/xdg-base-dirs/releases/tag/${src.rev}";
license = licenses.isc;
maintainers = with maintainers; [ figsoda ];
};
}
|