3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/version-management/sourcehut/scm.nix
Julien Moutinho 2c599ba5d0 Revert "sourcehut: update go-redis to support Unix sockets"
This reverts commit 1eba3869b4c4ee1f19ddc6fbb7f068756cf2e895.

Those patches have been merged upstream.
2021-12-28 22:18:45 -05:00

44 lines
819 B
Nix

{ lib
, fetchFromSourcehut
, buildPythonPackage
, srht
, redis
, pyyaml
, buildsrht
}:
buildPythonPackage rec {
pname = "scmsrht";
version = "0.22.15";
src = fetchFromSourcehut {
owner = "~sircmpwn";
repo = "scm.sr.ht";
rev = version;
sha256 = "sha256-h4akgDn78ctBF31TX8D8NwUVUVazClPVvCR9xWyQPBk=";
};
nativeBuildInputs = srht.nativeBuildInputs;
propagatedBuildInputs = [
srht
redis
pyyaml
buildsrht
];
preBuild = ''
export PKGVER=${version}
'';
dontUseSetuptoolsCheck = true;
pythonImportsCheck = [ "scmsrht" ];
meta = with lib; {
homepage = "https://git.sr.ht/~sircmpwn/git.sr.ht";
description = "Shared support code for sr.ht source control services.";
license = licenses.agpl3Only;
maintainers = with maintainers; [ eadwu ];
};
}