mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
664edda544
The error: > Executing pythonOutputDistPhase > mv: cannot stat 'dist': No such file or directory was caused by the non-idempotent hook `pythonOutputDistHook` appearing in:86ab83260f
and initially in:adbc59c9d3
being run twice due to the manual propagation of `nativeBuildInputs` from sourcehut's core to sourcehut's services. Kudos to Winter (@winterqt) for making sense of this bug.
42 lines
772 B
Nix
42 lines
772 B
Nix
{ lib
|
|
, fetchFromSourcehut
|
|
, buildPythonPackage
|
|
, srht
|
|
, redis
|
|
, pyyaml
|
|
, buildsrht
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "scmsrht";
|
|
version = "0.22.22";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~sircmpwn";
|
|
repo = "scm.sr.ht";
|
|
rev = version;
|
|
sha256 = "sha256-iSzzyI8HZOpOb4dyt520MV/wds14fNag2+UOF09KS7w=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
srht
|
|
redis
|
|
pyyaml
|
|
buildsrht
|
|
];
|
|
|
|
preBuild = ''
|
|
export PKGVER=${version}
|
|
'';
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
pythonImportsCheck = [ "scmsrht" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://git.sr.ht/~sircmpwn/scm.sr.ht";
|
|
description = "Shared support code for sr.ht source control services.";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ eadwu ];
|
|
};
|
|
}
|