biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / xdg-base-dirs / default.nix
blobe65785377a57904bfc82d50a91560df456166d8d
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.1";
13   format = "pyproject";
15   disabled = pythonOlder "3.10";
17   src = fetchFromGitHub {
18     owner = "srstevenson";
19     repo = "xdg-base-dirs";
20     rev = version;
21     hash = "sha256-nbdF1tjVqlxwiGW0pySS6HyJbmNuQ7mVdQYfhofO4Dk=";
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/${src.rev}";
39     license = licenses.isc;
40     maintainers = with maintainers; [ figsoda ];
41   };