1{ lib, buildPythonPackage, fetchFromGitHub, isPy27
2, clikit
3, poetry
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 version = "4.0.1";
9 pname = "xdg";
10 disabled = isPy27;
11 format = "pyproject";
12
13 src = fetchFromGitHub {
14 owner = "srstevenson";
15 repo = pname;
16 rev = version;
17 sha256 = "13kgnbwam6wmdbig0m98vmyjcqrp0j62nmfknb6prr33ns2nxbs2";
18 };
19
20 nativeBuildInputs = [ poetry ];
21
22 propagatedBuildInputs = [
23 clikit
24 ];
25
26 checkInputs = [ pytestCheckHook ];
27
28 meta = with lib; {
29 description = "XDG Base Directory Specification for Python";
30 homepage = "https://github.com/srstevenson/xdg";
31 license = licenses.isc;
32 maintainers = with maintainers; [ jonringer ];
33 };
34}