2021-04-18 03:15:17 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromSourcehut
|
|
|
|
, buildPythonPackage
|
|
|
|
, srht
|
|
|
|
, redis
|
|
|
|
, pyyaml
|
2021-12-13 19:52:10 +00:00
|
|
|
, buildsrht
|
2021-04-18 03:15:17 +00:00
|
|
|
}:
|
2019-01-22 02:01:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scmsrht";
|
2022-02-12 00:36:02 +00:00
|
|
|
version = "0.22.19"; # Untagged version
|
2019-01-22 02:01:52 +00:00
|
|
|
|
2021-04-18 03:15:17 +00:00
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~sircmpwn";
|
|
|
|
repo = "scm.sr.ht";
|
2019-01-22 02:01:52 +00:00
|
|
|
rev = version;
|
2022-02-12 00:36:02 +00:00
|
|
|
sha256 = "sha256-/QryPjWJ2S0Ov9DTdrwbM81HYucHiYcLh0oKacflywI=";
|
2019-01-22 02:01:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = srht.nativeBuildInputs;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
srht
|
|
|
|
redis
|
|
|
|
pyyaml
|
2021-12-13 19:52:10 +00:00
|
|
|
buildsrht
|
2019-01-22 02:01:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export PKGVER=${version}
|
|
|
|
'';
|
|
|
|
|
2019-12-30 01:04:02 +00:00
|
|
|
dontUseSetuptoolsCheck = true;
|
2021-08-15 21:11:47 +00:00
|
|
|
pythonImportsCheck = [ "scmsrht" ];
|
2019-01-22 02:01:52 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-12-14 19:18:17 +00:00
|
|
|
homepage = "https://git.sr.ht/~sircmpwn/scm.sr.ht";
|
2019-01-22 02:01:52 +00:00
|
|
|
description = "Shared support code for sr.ht source control services.";
|
2021-08-15 20:54:11 +00:00
|
|
|
license = licenses.agpl3Only;
|
2019-01-22 02:01:52 +00:00
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|