nixpkgs/pkgs/applications/version-management/sourcehut/scm.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
893 B
Nix
Raw Normal View History

2021-04-18 03:15:17 +00:00
{ lib
, fetchFromSourcehut
, buildPythonPackage
, srht
, pyyaml
, buildsrht
, pythonOlder
, setuptools
2021-04-18 03:15:17 +00:00
}:
buildPythonPackage rec {
pname = "scmsrht";
2024-03-30 13:11:37 +00:00
version = "0.22.24";
pyproject = true;
disabled = pythonOlder "3.7";
2021-04-18 03:15:17 +00:00
src = fetchFromSourcehut {
owner = "~sircmpwn";
repo = "scm.sr.ht";
rev = version;
2024-03-30 13:11:37 +00:00
hash = "sha256-9IgMmYzInfrten7z8bznlSFJlUjHf3k3z76lkP6tP50=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
srht
pyyaml
buildsrht
];
preBuild = ''
export PKGVER=${version}
'';
2019-12-30 01:04:02 +00:00
dontUseSetuptoolsCheck = true;
2021-08-15 21:11:47 +00:00
pythonImportsCheck = [ "scmsrht" ];
meta = with lib; {
2021-12-14 19:18:17 +00:00
homepage = "https://git.sr.ht/~sircmpwn/scm.sr.ht";
description = "Shared support code for sr.ht source control services";
2021-08-15 20:54:11 +00:00
license = licenses.agpl3Only;
maintainers = with maintainers; [ eadwu christoph-heiss ];
};
}