Skip to content

Commit

Permalink
python310Packages.bitstring: fix unit tests
Browse files Browse the repository at this point in the history
The unit tests are broken on staging by the new unittest hook, because
this project did not run its tests using `unittest` from project root.
For now, I've submitted a patch upstream and pulled it in here so that
the build is unblocked.
  • Loading branch information
tjni committed Aug 20, 2022
1 parent 949c5dc commit c37f44b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/development/python-modules/bitstring/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, unittestCheckHook
}:

Expand All @@ -15,6 +16,14 @@ buildPythonPackage rec {
sha256 = "0y2kcq58psvl038r6dhahhlhp1wjgr5zsms45wyz1naq6ri8x9qa";
};

patches = [
(fetchpatch {
name = "fix-running-unit-tests-using-unittest-hook.patch";
url = "https://github.com/scott-griffiths/bitstring/commit/e5ee3fd41cad2ea761f4450b13b0424ae7262331.patch";
hash = "sha256-+ZGywIfQQcYXJlYZBi402ONnysYm66G5zE4duJE40h8=";
})
];

checkInputs = [ unittestCheckHook ];

unittestFlagsArray = [ "-s" "test" ];
Expand Down

0 comments on commit c37f44b

Please sign in to comment.