mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 05:23:16 +00:00
2bfa93e01c
It won't be enough to fix cross in all cases, but it is in at least one: pywayland. I've only made the change in cases I'm confident it's correct, as it would be wrong to change this when python.interpreter is used in wrappers, and possibly when it's used for running tests.
57 lines
1.6 KiB
Nix
57 lines
1.6 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3Packages
|
|
, nixosTests
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "zeronet-conservancy";
|
|
version = "0.7.8.1";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zeronet-conservancy";
|
|
repo = "zeronet-conservancy";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-+wZiwUy5bmW8+3h4SuvNN8I6mCIPOlOeFmiXlMu12OU=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
gevent msgpack base58 merkletools rsa pysocks pyasn1 websocket-client
|
|
gevent-websocket rencode bitcoinlib maxminddb pyopenssl rich defusedxml
|
|
pyaes
|
|
];
|
|
|
|
buildPhase = ''
|
|
${python3Packages.python.pythonForBuild.interpreter} -O -m compileall .
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share
|
|
cp -r plugins src *.py $out/share/
|
|
'';
|
|
|
|
postFixup = ''
|
|
makeWrapper "$out/share/zeronet.py" "$out/bin/zeronet" \
|
|
--set PYTHONPATH "$PYTHONPATH" \
|
|
--set PATH ${python3Packages.python}/bin
|
|
'';
|
|
|
|
passthru.tests = {
|
|
nixos-test = nixosTests.zeronet-conservancy;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "A fork/continuation of the ZeroNet project";
|
|
longDescription = ''
|
|
zeronet-conservancy is a fork/continuation of ZeroNet project (that has
|
|
been abandoned by its creator) that is dedicated to sustaining existing
|
|
p2p network and developing its values of decentralization and freedom,
|
|
while gradually switching to a better designed network.
|
|
'';
|
|
homepage = "https://github.com/zeronet-conservancy/zeronet-conservancy";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ fgaz ];
|
|
};
|
|
}
|