Skip to content

Commit

Permalink
pythonPackages.cozy: fix build
Browse files Browse the repository at this point in the history
to allow building with dictionaries 0.0.2

(cherry picked from commit 7486a8d)
  • Loading branch information
risicle authored and Jon committed Sep 25, 2020
1 parent c9b329c commit 72b01f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/development/python-modules/cozy/default.nix
Expand Up @@ -4,6 +4,7 @@
buildPythonPackage {
pname = "cozy";
version = "2.0a1";
disabled = !isPy3k;

propagatedBuildInputs = [
z3 ply python-igraph oset ordered-set dictionaries
Expand All @@ -18,18 +19,18 @@ buildPythonPackage {

# Yoink the Z3 dependency name, because our Z3 package doesn't provide it.
postPatch = ''
sed -i -e '/z3-solver/d' requirements.txt
sed -i -e '/z3-solver/d' -e 's/^dictionaries.*$/dictionaries/' requirements.txt
'';

# Tests are not correctly set up in the source tree.
doCheck = false;
pythonImportsCheck = [ "cozy" ];

# There is some first-time-run codegen that we will force to happen.
postInstall = ''
$out/bin/cozy --help
'';

disabled = !isPy3k;

meta = {
description = "The collection synthesizer";
Expand Down

0 comments on commit 72b01f5

Please sign in to comment.