2018-09-09 19:33:45 +00:00
|
|
|
{ buildPythonPackage, isPy3k, fetchFromGitHub, lib,
|
2018-07-22 18:59:14 +00:00
|
|
|
z3, ply, python-igraph, oset, ordered-set, dictionaries }:
|
|
|
|
|
|
|
|
buildPythonPackage {
|
|
|
|
pname = "cozy";
|
|
|
|
version = "2.0a1";
|
2020-09-23 21:22:32 +00:00
|
|
|
disabled = !isPy3k;
|
2018-07-22 18:59:14 +00:00
|
|
|
|
|
|
|
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 = ''
|
2020-09-23 21:22:32 +00:00
|
|
|
sed -i -e '/z3-solver/d' -e 's/^dictionaries.*$/dictionaries/' requirements.txt
|
2018-07-22 18:59:14 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
# Tests are not correctly set up in the source tree.
|
|
|
|
doCheck = false;
|
2020-09-23 21:22:32 +00:00
|
|
|
pythonImportsCheck = [ "cozy" ];
|
2018-07-22 18:59:14 +00:00
|
|
|
|
|
|
|
# There is some first-time-run codegen that we will force to happen.
|
|
|
|
postInstall = ''
|
|
|
|
$out/bin/cozy --help
|
|
|
|
'';
|
|
|
|
|
2018-09-09 19:33:45 +00:00
|
|
|
|
2018-07-22 18:59:14 +00:00
|
|
|
meta = {
|
|
|
|
description = "The collection synthesizer";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://cozy.uwplse.org/";
|
2018-07-22 18:59:14 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = [ lib.maintainers.MostAwesomeDude ];
|
|
|
|
};
|
|
|
|
}
|