1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
40 lines
777 B
Nix
40 lines
777 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pgmpy,
|
|
torch,
|
|
}:
|
|
let
|
|
pname = "flyingsquid";
|
|
version = "0.0.0a0";
|
|
in
|
|
buildPythonPackage {
|
|
inherit pname version;
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "HazyResearch";
|
|
repo = "flyingsquid";
|
|
rev = "28a713a9ac501b7597c2489468ae189943d00685";
|
|
hash = "sha256-DPHTSxDD4EW3nrNk2fk0pKJI/8+pQ7Awywd8nxhBruo=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pgmpy
|
|
torch
|
|
];
|
|
|
|
pythonImportsCheck = [ "flyingsquid" ];
|
|
|
|
# no tests
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "More interactive weak supervision with FlyingSquid";
|
|
homepage = "https://github.com/HazyResearch/flyingsquid";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ happysalada ];
|
|
};
|
|
}
|