polkit: fix building with clang (#376893)
[NixPkgs.git] / pkgs / applications / version-management / sourcehut / scm.nix
blobea7ba30aa656f983a7dc50eb17c618d95cc027d7
2   lib,
3   fetchFromSourcehut,
4   buildPythonPackage,
5   srht,
6   pyyaml,
7   buildsrht,
8   pythonOlder,
9   setuptools,
12 buildPythonPackage rec {
13   pname = "scmsrht";
14   version = "0.22.24";
15   pyproject = true;
17   disabled = pythonOlder "3.7";
19   src = fetchFromSourcehut {
20     owner = "~sircmpwn";
21     repo = "scm.sr.ht";
22     rev = version;
23     hash = "sha256-9IgMmYzInfrten7z8bznlSFJlUjHf3k3z76lkP6tP50=";
24   };
26   nativeBuildInputs = [
27     setuptools
28   ];
30   propagatedBuildInputs = [
31     srht
32     pyyaml
33     buildsrht
34   ];
36   preBuild = ''
37     export PKGVER=${version}
38   '';
40   dontUseSetuptoolsCheck = true;
42   pythonImportsCheck = [ "scmsrht" ];
44   meta = with lib; {
45     homepage = "https://git.sr.ht/~sircmpwn/scm.sr.ht";
46     description = "Shared support code for sr.ht source control services";
47     license = licenses.agpl3Only;
48     maintainers = with maintainers; [
49       eadwu
50       christoph-heiss
51     ];
52   };