mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-18 20:47:54 +00:00
Adapt to Tahoe-LAFS' new build system
This commit is contained in:
parent
f0785a547e
commit
086f93432c
@ -201,7 +201,6 @@
|
|||||||
in
|
in
|
||||||
writeScript "unit-tests"
|
writeScript "unit-tests"
|
||||||
''
|
''
|
||||||
${python} setup.py update_version
|
|
||||||
export TAHOE_LAFS_HYPOTHESIS_PROFILE=ci
|
export TAHOE_LAFS_HYPOTHESIS_PROFILE=ci
|
||||||
export PYTHONPATH=$PWD/src
|
export PYTHONPATH=$PWD/src
|
||||||
${python} -m twisted.trial "$@"
|
${python} -m twisted.trial "$@"
|
||||||
|
@ -9,6 +9,7 @@ in
|
|||||||
}:
|
}:
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
|
pyproject = true;
|
||||||
src = tahoe-lafs-src;
|
src = tahoe-lafs-src;
|
||||||
propagatedBuildInputs = with pythonPackages; [
|
propagatedBuildInputs = with pythonPackages; [
|
||||||
attrs
|
attrs
|
||||||
@ -22,6 +23,8 @@ buildPythonPackage rec {
|
|||||||
filelock
|
filelock
|
||||||
foolscap
|
foolscap
|
||||||
future
|
future
|
||||||
|
hatchling
|
||||||
|
hatch-vcs
|
||||||
klein
|
klein
|
||||||
magic-wormhole
|
magic-wormhole
|
||||||
netifaces
|
netifaces
|
||||||
@ -70,24 +73,6 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch =
|
|
||||||
let
|
|
||||||
versionFileContents = version: ''
|
|
||||||
# This _version.py is generated by tahoe-lafs.nix.
|
|
||||||
# TODO: We can have more metadata after we switch to flakes.
|
|
||||||
# Then the `self` input will have a `sourceInfo` attribute telling
|
|
||||||
__pkgname__ = "tahoe-lafs"
|
|
||||||
real_version = "${version}"
|
|
||||||
full_version = "${version}"
|
|
||||||
branch = ""
|
|
||||||
verstr = "${version}"
|
|
||||||
__version__ = verstr
|
|
||||||
'';
|
|
||||||
in
|
|
||||||
''
|
|
||||||
cp ${builtins.toFile "_version.py" (versionFileContents version)} src/allmydata/_version.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://tahoe-lafs.org/";
|
homepage = "https://tahoe-lafs.org/";
|
||||||
description = "secure, decentralized, fault-tolerant file store";
|
description = "secure, decentralized, fault-tolerant file store";
|
||||||
|
Loading…
Reference in New Issue
Block a user