about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/cozy/default.nix
blob: 7515891456e9320babc63c78a699110622c9ea91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ buildPythonPackage, isPy3k, fetchFromGitHub, lib,
  z3, ply, python-igraph, oset, ordered-set, dictionaries }:

buildPythonPackage {
  pname = "cozy";
  version = "2.0a1";

  propagatedBuildInputs = [
    z3 ply python-igraph oset ordered-set dictionaries
  ];

  src = fetchFromGitHub {
    owner = "CozySynthesizer";
    repo = "cozy";
    rev = "f553e9b";
    sha256 = "1jhr5gzihj8dkg0yc5dmi081v2isxharl0ph7v2grqj0bwqzl40j";
  };

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

  # Tests are not correctly set up in the source tree.
  doCheck = false;

  # 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";
    homepage = https://cozy.uwplse.org/;
    license = lib.licenses.asl20;
    maintainers = [ lib.maintainers.MostAwesomeDude ];
  };
}