python3Packages.cypherpunkpay: init at 1.0.15
This commit is contained in:
parent
c58d293034
commit
da7db62574
97
pkgs/development/python-modules/cypherpunkpay/default.nix
Normal file
97
pkgs/development/python-modules/cypherpunkpay/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -1983,6 +1983,8 @@ in {
|
|||
|
||||
cypari2 = callPackage ../development/python-modules/cypari2 { };
|
||||
|
||||
cypherpunkpay = callPackage ../development/python-modules/cypherpunkpay { };
|
||||
|
||||
cysignals = callPackage ../development/python-modules/cysignals { };
|
||||
|
||||
cython = callPackage ../development/python-modules/Cython { };
|
||||
|
|
Loading…
Reference in a new issue