diff --git a/pkgs/development/python-modules/cypherpunkpay/default.nix b/pkgs/development/python-modules/cypherpunkpay/default.nix index ca3623f09199..1a19caa734c4 100644 --- a/pkgs/development/python-modules/cypherpunkpay/default.nix +++ b/pkgs/development/python-modules/cypherpunkpay/default.nix @@ -1,33 +1,37 @@ { lib, + buildPythonPackage, + fetchFromGitHub, + + # build-system + poetry-core, + + # dependencies apscheduler, bitstring, - buildPythonPackage, cffi, ecdsa, - fetchFromGitHub, monero, - poetry-core, pypng, pyqrcode, pyramid, pyramid-jinja2, pysocks, - pytestCheckHook, - pythonOlder, + pytz, requests, tzlocal, waitress, - webtest, yoyo-migrations, + + # tests + pytestCheckHook, + webtest, }: buildPythonPackage rec { pname = "cypherpunkpay"; version = "1.0.16"; - format = "pyproject"; - - disabled = pythonOlder "3.7"; + pyproject = true; src = fetchFromGitHub { owner = "CypherpunkPay"; @@ -46,11 +50,11 @@ buildPythonPackage rec { "waitress" ]; - nativeBuildInputs = [ + build-system = [ poetry-core ]; - propagatedBuildInputs = [ + dependencies = [ apscheduler bitstring cffi @@ -61,6 +65,7 @@ buildPythonPackage rec { pyramid pyramid-jinja2 pysocks + pytz requests tzlocal waitress @@ -103,14 +108,14 @@ buildPythonPackage rec { pythonImportsCheck = [ "cypherpunkpay" ]; - meta = with lib; { + meta = { description = "Modern self-hosted software for accepting Bitcoin"; homepage = "https://github.com/CypherpunkPay/CypherpunkPay"; changelog = "https://github.com/CypherpunkPay/CypherpunkPay/releases/tag/v${version}"; - license = with licenses; [ + license = with lib.licenses; [ mit # or unlicense ]; - maintainers = with maintainers; [ prusnak ]; + maintainers = with lib.maintainers; [ prusnak ]; }; }