about summary refs log tree commit diff
path: root/pkgs/development/python-modules/flyingsquid/default.nix
blob: dcaf664e4acf5c03d7ff911b42575e0b8c9f709a (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
41
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pgmpy
, torch
}:
let
  pname = "flyingsquid";
  version = "0.0.0a0";
in
buildPythonPackage {
  inherit pname version;
  format = "setuptools";

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "HazyResearch";
    repo = pname;
    rev = "28a713a9ac501b7597c2489468ae189943d00685";
    hash = "sha256-DPHTSxDD4EW3nrNk2fk0pKJI/8+pQ7Awywd8nxhBruo=";
  };

  propagatedBuildInputs = [
    pgmpy
    torch
  ];

  pythonImportsCheck = [ "flyingsquid" ];

  # no tests
  doCheck = false;

  meta = with lib; {
    description = "More interactive weak supervision with FlyingSquid";
    homepage = "https://github.com/HazyResearch/flyingsquid";
    license = licenses.asl20;
    maintainers = with maintainers; [ happysalada ];
  };
}