1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/version-management/sourcehut/todo.nix

49 lines
978 B
Nix
Raw Normal View History

{ stdenv, fetchgit, buildPythonPackage
, python
2019-10-05 16:00:49 +01:00
, srht, redis, alembic, pystache
, pytest, factory_boy, writeText }:
buildPythonPackage rec {
pname = "todosrht";
2020-04-16 21:25:31 +01:00
version = "0.57.14";
src = fetchgit {
url = "https://git.sr.ht/~sircmpwn/todo.sr.ht";
rev = version;
sha256 = "15x78rl0zh1rw0izc36k47b27l75k7iyina5ajm3mgkslpndym4y";
};
patches = [
./use-srht-path.patch
];
nativeBuildInputs = srht.nativeBuildInputs;
propagatedBuildInputs = [
srht
redis
alembic
pystache
];
preBuild = ''
export PKGVER=${version}
export SRHT_PATH=${srht}/${python.sitePackages}/srht
'';
2019-12-30 01:04:16 +00:00
# pytest tests fail
2019-10-05 16:00:49 +01:00
checkInputs = [
pytest
factory_boy
];
2019-12-30 01:04:16 +00:00
dontUseSetuptoolsCheck = true;
meta = with stdenv.lib; {
homepage = "https://todo.sr.ht/~sircmpwn/todo.sr.ht";
description = "Ticket tracking service for the sr.ht network";
license = licenses.agpl3;
maintainers = with maintainers; [ eadwu ];
};
}