mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
sourcehut.*: add format
- add nativeBuildInputs - disable on unsupported Python releases
This commit is contained in:
parent
77df474b75
commit
30748250bc
@ -11,6 +11,9 @@
|
||||
, lxml
|
||||
, python
|
||||
, unzip
|
||||
, pip
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
let
|
||||
version = "0.86.10";
|
||||
@ -39,12 +42,20 @@ in
|
||||
buildPythonPackage rec {
|
||||
inherit src version;
|
||||
pname = "buildsrht";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "all: api worker" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
pip
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
srht
|
||||
redis
|
||||
|
@ -21,12 +21,17 @@
|
||||
, importlib-metadata
|
||||
, tinycss2
|
||||
, sassc
|
||||
, pythonOlder
|
||||
, minify
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "srht";
|
||||
version = "0.69.15";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~sircmpwn";
|
||||
@ -41,6 +46,10 @@ buildPythonPackage rec {
|
||||
patches/redis-socket/core/0001-Fix-Unix-socket-support-in-RedisQueueCollector.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedNativeBuildInputs = [
|
||||
sassc
|
||||
minify
|
||||
|
@ -7,7 +7,10 @@
|
||||
, scmsrht
|
||||
, pygit2
|
||||
, minio
|
||||
, pythonOlder
|
||||
, unzip
|
||||
, pip
|
||||
, setuptools
|
||||
}:
|
||||
let
|
||||
version = "0.84.2";
|
||||
@ -78,12 +81,20 @@ in
|
||||
buildPythonPackage rec {
|
||||
inherit src version;
|
||||
pname = "gitsrht";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "all: api gitsrht-dispatch gitsrht-keys gitsrht-shell gitsrht-update-hook" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
pip
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
srht
|
||||
scmsrht
|
||||
|
@ -8,11 +8,17 @@
|
||||
, unidiff
|
||||
, python
|
||||
, unzip
|
||||
, pip
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hgsrht";
|
||||
version = "0.32.4";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~sircmpwn";
|
||||
@ -49,6 +55,11 @@ buildPythonPackage rec {
|
||||
'';
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pip
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
python-hglib
|
||||
scmsrht
|
||||
|
@ -4,13 +4,19 @@
|
||||
, buildPythonPackage
|
||||
, python
|
||||
, srht
|
||||
, setuptools
|
||||
, pip
|
||||
, pyyaml
|
||||
, pythonOlder
|
||||
, unzip
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hubsrht";
|
||||
version = "0.17.2";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~sircmpwn";
|
||||
@ -30,6 +36,11 @@ buildPythonPackage rec {
|
||||
vendorHash = "sha256-K5EmZ4U+xItTR85+SCwhwg5KUGLkKHo9Nr2pkvmJpfo=";
|
||||
} // import ./fix-gqlgen-trimpath.nix { inherit unzip; });
|
||||
|
||||
nativeBuildInputs = [
|
||||
pip
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
srht
|
||||
pyyaml
|
||||
@ -44,7 +55,13 @@ buildPythonPackage rec {
|
||||
ln -s ${hubsrht-api}/bin/api $out/bin/hubsrht-api
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "hubsrht" ];
|
||||
|
||||
# Module has no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"hubsrht"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://git.sr.ht/~sircmpwn/hub.sr.ht";
|
||||
|
@ -9,11 +9,17 @@
|
||||
, emailthreads
|
||||
, python
|
||||
, unzip
|
||||
, pip
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "listssrht";
|
||||
version = "0.57.8";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~sircmpwn";
|
||||
@ -34,6 +40,11 @@ buildPythonPackage rec {
|
||||
--replace "all: api" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
pip
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
srht
|
||||
aiosmtpd
|
||||
|
@ -6,11 +6,17 @@
|
||||
, pygit2
|
||||
, python
|
||||
, unzip
|
||||
, pip
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mansrht";
|
||||
version = "0.16.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~sircmpwn";
|
||||
@ -30,6 +36,11 @@ buildPythonPackage rec {
|
||||
vendorHash = "sha256-K5EmZ4U+xItTR85+SCwhwg5KUGLkKHo9Nr2pkvmJpfo=";
|
||||
} // import ./fix-gqlgen-trimpath.nix { inherit unzip; });
|
||||
|
||||
nativeBuildInputs = [
|
||||
pip
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
srht
|
||||
pygit2
|
||||
|
@ -13,6 +13,9 @@
|
||||
, zxcvbn
|
||||
, python
|
||||
, unzip
|
||||
, pip
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
let
|
||||
version = "0.64.8";
|
||||
@ -35,12 +38,20 @@ in
|
||||
buildPythonPackage rec {
|
||||
pname = "metasrht";
|
||||
inherit version src;
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "all: api" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
pip
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
alembic
|
||||
bcrypt
|
||||
|
@ -3,8 +3,11 @@
|
||||
, buildGoModule
|
||||
, buildPythonPackage
|
||||
, srht
|
||||
, pip
|
||||
, pyyaml
|
||||
, python
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
, unzip
|
||||
}:
|
||||
|
||||
@ -28,12 +31,20 @@ in
|
||||
buildPythonPackage rec {
|
||||
inherit src version;
|
||||
pname = "pastesrht";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "all: api" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
pip
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
srht
|
||||
pyyaml
|
||||
|
@ -4,11 +4,16 @@
|
||||
, srht
|
||||
, pyyaml
|
||||
, buildsrht
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "scmsrht";
|
||||
version = "0.22.23";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~sircmpwn";
|
||||
@ -17,6 +22,10 @@ buildPythonPackage rec {
|
||||
sha256 = "sha256-058dOEYJDY3jtxH1VkV1CFq5CZTkauSnTWg57DCnNtw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
srht
|
||||
pyyaml
|
||||
@ -28,6 +37,7 @@ buildPythonPackage rec {
|
||||
'';
|
||||
|
||||
dontUseSetuptoolsCheck = true;
|
||||
|
||||
pythonImportsCheck = [ "scmsrht" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -8,11 +8,16 @@
|
||||
, factory-boy
|
||||
, python
|
||||
, unzip
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "todosrht";
|
||||
version = "0.74.6";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~sircmpwn";
|
||||
@ -33,6 +38,10 @@ buildPythonPackage rec {
|
||||
vendorHash = "sha256-rvfG5F6ez8UM0dYVhKfzwtb7ZEJlaKMBAfKDbo3Aofc=";
|
||||
} // import ./fix-gqlgen-trimpath.nix { inherit unzip; });
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
srht
|
||||
alembic
|
||||
|
Loading…
Reference in New Issue
Block a user