mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
38 lines
742 B
Nix
38 lines
742 B
Nix
{ lib
|
|
, fetchFromSourcehut
|
|
, buildPythonPackage
|
|
, srht
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hubsrht";
|
|
version = "0.14.14";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~sircmpwn";
|
|
repo = "hub.sr.ht";
|
|
rev = version;
|
|
sha256 = "sha256-4n6oQ+AAvdJY/5KflxAp62chjyrlSUkmt319DKZk33w=";
|
|
};
|
|
|
|
nativeBuildInputs = srht.nativeBuildInputs;
|
|
|
|
propagatedBuildInputs = [
|
|
srht
|
|
];
|
|
|
|
preBuild = ''
|
|
export PKGVER=${version}
|
|
'';
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
pythonImportsCheck = [ "hubsrht" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://git.sr.ht/~sircmpwn/hub.sr.ht";
|
|
description = "Project hub service for the sr.ht network";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ eadwu ];
|
|
};
|
|
}
|