From 621ec5b398a72d389aea98400618f1a44f3a1209 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Sun, 27 Nov 2022 09:51:59 -0800 Subject: [PATCH] python310Packages.bitstring: 3.1.9 -> 4.0.1 --- .../python-modules/bitstring/default.nix | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/bitstring/default.nix b/pkgs/development/python-modules/bitstring/default.nix index c67b70778c89..a5d96508aa83 100644 --- a/pkgs/development/python-modules/bitstring/default.nix +++ b/pkgs/development/python-modules/bitstring/default.nix @@ -1,33 +1,31 @@ { lib , buildPythonPackage , fetchFromGitHub -, fetchpatch +, pythonOlder +, setuptools , unittestCheckHook }: buildPythonPackage rec { pname = "bitstring"; - version = "3.1.9"; + version = "4.0.1"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "scott-griffiths"; repo = pname; rev = "bitstring-${version}"; - sha256 = "0y2kcq58psvl038r6dhahhlhp1wjgr5zsms45wyz1naq6ri8x9qa"; + hash = "sha256-eHP20F9PRe9ZNXjcDcsI3iFVswA6KtRWhBMAT7dkCv0="; }; - patches = [ - (fetchpatch { - name = "fix-running-unit-tests-using-unittest-hook.patch"; - url = "https://github.com/scott-griffiths/bitstring/commit/e5ee3fd41cad2ea761f4450b13b0424ae7262331.patch"; - hash = "sha256-+ZGywIfQQcYXJlYZBi402ONnysYm66G5zE4duJE40h8="; - }) + nativeBuildInputs = [ + setuptools ]; checkInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "-s" "test" ]; - pythonImportsCheck = [ "bitstring" ]; meta = with lib; {