forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NixOS#159879 from prusnak/cypherpunkpay
python3Packages.cypherpunkpay: init at 1.0.15
- Loading branch information
Showing
6 changed files
with
217 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
{ stdenv | ||
, lib | ||
, buildPythonPackage | ||
, fetchFromGitHub | ||
, poetry-core | ||
, APScheduler | ||
, bitstring | ||
, cffi | ||
, ecdsa | ||
, monero | ||
, pypng | ||
, pyqrcode | ||
, pyramid | ||
, pyramid_jinja2 | ||
, pysocks | ||
, requests | ||
, tzlocal | ||
, waitress | ||
, yoyo-migrations | ||
, pytestCheckHook | ||
, pytest-cov | ||
, webtest | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "cypherpunkpay"; | ||
version = "1.0.15"; | ||
format = "pyproject"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "CypherpunkPay"; | ||
repo = "CypherpunkPay"; | ||
rev = "v${version}"; | ||
sha256 = "sha256-W2f4jtEqopDXiXx0pklZrjOmVhpx2kDdTJRPm2Ka0Cg="; | ||
}; | ||
|
||
postPatch = '' | ||
substituteInPlace pyproject.toml \ | ||
--replace 'monero = "^0.99"' 'monero = ">=0.99"' \ | ||
--replace 'pypng = "^0.0.20"' 'pypng = ">=0.0.20"' \ | ||
--replace 'tzlocal = "2.1"' 'tzlocal = ">=2.1"' | ||
''; | ||
|
||
nativeBuildInputs = [ | ||
poetry-core | ||
]; | ||
|
||
propagatedBuildInputs = [ | ||
APScheduler | ||
bitstring | ||
cffi | ||
ecdsa | ||
monero | ||
pypng | ||
pyqrcode | ||
pyramid | ||
pyramid_jinja2 | ||
pysocks | ||
requests | ||
tzlocal | ||
waitress | ||
yoyo-migrations | ||
]; | ||
|
||
checkInputs = [ | ||
pytestCheckHook | ||
pytest-cov | ||
webtest | ||
]; | ||
|
||
disabledTestPaths = [ | ||
# performance test | ||
"test/unit/tools/pbkdf2_test.py" | ||
# tests require network connection | ||
"test/network/explorers/bitcoin" | ||
"test/network/net/http_client" | ||
"test/network/prices" | ||
# tests require bitcoind running | ||
"test/network/full_node_clients" | ||
# tests require lnd running | ||
"test/network/ln" | ||
# tests require tor running | ||
"test/network/net/tor_client" | ||
# tests require the full environment running | ||
"test/acceptance/views" | ||
"test/acceptance/views_admin" | ||
"test/acceptance/views_donations" | ||
"test/acceptance/views_dummystore" | ||
]; | ||
|
||
meta = with lib; { | ||
description = "Modern self-hosted software for accepting Bitcoin"; | ||
homepage = "https://cypherpunkpay.org"; | ||
license = with licenses; [ mit /* or */ unlicense ]; | ||
maintainers = with maintainers; [ prusnak ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchFromGitHub | ||
, pycryptodomex | ||
, pysocks | ||
, pynacl | ||
, requests | ||
, six | ||
, varint | ||
, pytestCheckHook | ||
, pytest-cov | ||
, responses | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "monero"; | ||
version = "1.0.1"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "monero-ecosystem"; | ||
repo = "monero-python"; | ||
rev = "v${version}"; | ||
sha256 = "sha256-ZjAShIeGVVIKlwgSNPVSN7eaqhKu3wEpDP9wgBMOyZU="; | ||
}; | ||
|
||
postPatch = '' | ||
substituteInPlace requirements.txt \ | ||
--replace 'pynacl~=1.4' 'pynacl>=1.4' \ | ||
--replace 'ipaddress' "" | ||
''; | ||
|
||
pythonImportsCheck = [ "monero" ]; | ||
|
||
propagatedBuildInputs = [ | ||
pycryptodomex | ||
pynacl | ||
pysocks | ||
requests | ||
six | ||
varint | ||
]; | ||
|
||
checkInputs = [ pytestCheckHook pytest-cov responses ]; | ||
|
||
meta = with lib; { | ||
description = "Comprehensive Python module for handling Monero"; | ||
homepage = "https://github.com/monero-ecosystem/monero-python"; | ||
license = licenses.bsd3; | ||
maintainers = with maintainers; [ prusnak ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchFromGitHub | ||
, pytestCheckHook | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "pypng"; | ||
version = "0.0.21"; | ||
format = "pyproject"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "drj11"; | ||
repo = "pypng"; | ||
rev = "${pname}-${version}"; | ||
sha256 = "sha256-JU1GCSTm2s6Kczn6aRcF5DizPJVpizNtnAMJxTBi9vo="; | ||
}; | ||
|
||
pythonImportsCheck = [ "png" ]; | ||
|
||
checkInputs = [ pytestCheckHook ]; | ||
|
||
meta = with lib; { | ||
description = "Pure Python library for PNG image encoding/decoding"; | ||
homepage = "https://github.com/drj11/pypng"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ prusnak ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
pkgs/development/python-modules/yoyo-migrations/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchPypi | ||
, setuptools | ||
, sqlparse | ||
, tabulate | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "yoyo-migrations"; | ||
version = "7.3.2"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "sha256-RIQIKOGgFp9UHnAtWu3KgYWtpoCH57rUhQpvxdced6Q="; | ||
}; | ||
|
||
propagatedBuildInputs = [ setuptools sqlparse tabulate ]; | ||
|
||
doCheck = false; # pypi tarball does not contain tests | ||
|
||
pythonImportsCheck = [ "yoyo" ]; | ||
|
||
meta = with lib; { | ||
description = "Database schema migration tool"; | ||
homepage = "https://ollycope.com/software/yoyo"; | ||
license = licenses.asl20; | ||
maintainers = with maintainers; [ prusnak ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters