aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/linecache2/default.nix
blob: a2c7080e270137b2d91ce8065f399ec7a62ac881 (plain)
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
{ stdenv
, buildPythonPackage
, fetchPypi
, pbr
, isPy3k
}:

buildPythonPackage (rec {
  pname = "linecache2";
  version = "1.0.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0z79g3ds5wk2lvnqw0y2jpakjf32h95bd9zmnvp7dnqhf57gy9jb";
  };

  buildInputs = [ pbr ];
  # circular dependencies for tests
  doCheck = false;

  meta = with stdenv.lib; {
    description = "A backport of linecache to older supported Pythons";
    homepage = "https://github.com/testing-cabal/linecache2";
    license = licenses.psfl;
  };
# TODO: move into main set, this was to avoid a rebuild
} // stdenv.lib.optionalAttrs (!isPy3k ) {
  # syntax error in tests. Tests are likely Python 3 only.
  dontUsePythonRecompileBytecode = !isPy3k;
})