blob: 889a823ff5f91391a8332225f9fd5dda24f40220 (
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
36
37
38
39
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "xdg-base-dirs";
version = "6.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "srstevenson";
repo = "xdg-base-dirs";
tag = version;
hash = "sha256-iXK9WURTfmpl5vd7RsT0ptwfrb5UQQFqMMCu3+vL+EY=";
};
nativeBuildInputs = [ poetry-core ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "xdg_base_dirs" ];
# remove coverage flags from pytest config
postPatch = ''
sed -i /addopts/d pyproject.toml
'';
meta = {
description = "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/${version}";
license = lib.licenses.isc;
maintainers = [ ];
};
}
|