Merge pull request #232672 from fabaff/bitstring-bump

python311Packages.bitstring: 4.0.1 -> 4.0.2
This commit is contained in:
Sandro 2023-05-19 00:40:07 +02:00 committed by GitHub
commit 8cac8760e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 20 deletions

View File

@ -8,7 +8,7 @@
buildPythonPackage rec {
pname = "bitstring";
version = "4.0.1";
version = "4.0.2";
format = "pyproject";
disabled = pythonOlder "3.7";
@ -17,7 +17,7 @@ buildPythonPackage rec {
owner = "scott-griffiths";
repo = pname;
rev = "bitstring-${version}";
hash = "sha256-eHP20F9PRe9ZNXjcDcsI3iFVswA6KtRWhBMAT7dkCv0=";
hash = "sha256-LghfDjf/Z1dEU0gjH1cqMb04ChnW+aGDjmN+RAhMWW8=";
};
nativeBuildInputs = [

View File

@ -1,25 +1,26 @@
{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
{ lib
, stdenv
, apscheduler
, bitstring
, buildPythonPackage
, cffi
, ecdsa
, fetchFromGitHub
, monero
, poetry-core
, pypng
, pyqrcode
, pyramid
, pyramid_jinja2
, pysocks
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, requests
, tzlocal
, waitress
, yoyo-migrations
, pytestCheckHook
, pytest-cov
, webtest
, yoyo-migrations
}:
buildPythonPackage rec {
@ -27,6 +28,8 @@ buildPythonPackage rec {
version = "1.0.16";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "CypherpunkPay";
repo = "CypherpunkPay";
@ -34,17 +37,18 @@ buildPythonPackage rec {
hash = "sha256-X0DB0PVwR0gRnt3jixFzglWAOPKBMvqTOG6pK6OJ03w=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "bitstring = '^3.1.9'" "bitstring = '>=3.1.9'" \
--replace 'cffi = "1.15.0"' 'cffi = ">=1.15.0"' \
--replace 'ecdsa = "^0.17.0"' 'ecdsa = ">=0.17.0"' \
--replace 'pypng = "^0.0.20"' 'pypng = ">=0.0.20"' \
--replace 'tzlocal = "2.1"' 'tzlocal = ">=2.1"'
'';
pythonRelaxDeps = [
"bitstring"
"cffi"
"ecdsa"
"pypng"
"tzlocal"
"yoyo-migrations"
];
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = [
@ -66,10 +70,14 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
pytest-cov
webtest
];
pytestFlagsArray = [
"-W"
"ignore::DeprecationWarning"
];
disabledTestPaths = [
# performance test
"tests/unit/tools/pbkdf2_test.py"
@ -94,9 +102,14 @@ buildPythonPackage rec {
"tests/acceptance/views_dummystore"
];
pythonImportsCheck = [
"cypherpunkpay"
];
meta = with lib; {
description = "Modern self-hosted software for accepting Bitcoin";
homepage = "https://cypherpunkpay.org";
homepage = "https://github.com/CypherpunkPay/CypherpunkPay";
changelog = "https://github.com/CypherpunkPay/CypherpunkPay/releases/tag/v${version}";
license = with licenses; [ mit /* or */ unlicense ];
maintainers = with maintainers; [ prusnak ];
};