kdePackages.kirigami-addons: 1.5.0 -> 1.6.0 (#360539)
[NixPkgs.git] / pkgs / development / python-modules / xdg-base-dirs / default.nix
blob5c376c3db4402b4b2aa74e6451a7b0ea6d73f724
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   poetry-core,
7   pytestCheckHook,
8 }:
10 buildPythonPackage rec {
11   pname = "xdg-base-dirs";
12   version = "6.0.2";
13   format = "pyproject";
15   disabled = pythonOlder "3.10";
17   src = fetchFromGitHub {
18     owner = "srstevenson";
19     repo = "xdg-base-dirs";
20     rev = "refs/tags/${version}";
21     hash = "sha256-iXK9WURTfmpl5vd7RsT0ptwfrb5UQQFqMMCu3+vL+EY=";
22   };
24   nativeBuildInputs = [ poetry-core ];
26   nativeCheckInputs = [ pytestCheckHook ];
28   pythonImportsCheck = [ "xdg_base_dirs" ];
30   # remove coverage flags from pytest config
31   postPatch = ''
32     sed -i /addopts/d pyproject.toml
33   '';
35   meta = with lib; {
36     description = "Implementation of the XDG Base Directory Specification in Python";
37     homepage = "https://github.com/srstevenson/xdg-base-dirs";
38     changelog = "https://github.com/srstevenson/xdg-base-dirs/releases/tag/${version}";
39     license = licenses.isc;
40     maintainers = with maintainers; [ figsoda ];
41   };