Skip to content

Commit 7761494

Browse files
committed
python3Packages.ihatemoney: fix postgresql test
1 parent 2720b53 commit 7761494

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

pkgs/development/python-modules/ihatemoney/default.nix

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ buildPythonPackage, lib, fetchFromGitHub, isPy27, nixosTests
1+
{ buildPythonPackage, lib, fetchFromGitHub, isPy27, nixosTests, fetchpatch
22
, alembic
33
, aniso8601
44
, Babel
@@ -44,7 +44,16 @@ buildPythonPackage rec {
4444
sha256 = "0d4vc6m0jkwlz9ly0hcjghccydvqbldh2jb8yzf94jrgkd5fd7k1";
4545
};
4646

47-
patchPhase = ''
47+
patches = [
48+
# fix migration on postgresql
49+
# remove on next release
50+
(fetchpatch {
51+
url = "https://github.com/spiral-project/ihatemoney/commit/6129191b26784b895e203fa3eafb89cee7d88b71.patch";
52+
sha256 = "0yc24gsih9x3pnh2mhj4v5i71x02dq93a9jd2r8b1limhcl4p1sw";
53+
})
54+
];
55+
56+
postPatch = ''
4857
# remove draconian pinning
4958
sed -i 's/==.*$//' setup.cfg
5059
'';

0 commit comments

Comments
 (0)