nixpkgs/pkgs/development/python-modules/update_checker/default.nix
Jonathan Ringer 92c7a40856 python3Packages.update_checker: disable py2
```
builder for '/nix/store/2qwl0rkdm2gx2byhpmw7lxyg5rprwqqk-python2.7-update_checker-0.18.0.drv' failed with exit code 1; last 10 log lines:
  no configure script, doing nothing
  building
  Executing setuptoolsBuildPhase
  Traceback (most recent call last):
    File "nix_run_setup", line 8, in <module>
      exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
    File "setup.py", line 9
      with open(f"{MODULE_NAME}.py") as fp:
                                  ^
  SyntaxError: invalid syntax
```
2020-11-05 15:47:10 -08:00

25 lines
569 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, requests, isPy27
}:
buildPythonPackage rec {
pname = "update_checker";
version = "0.18.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "6a2d45bb4ac585884a6b03f9eade9161cedd9e8111545141e9aa9058932acb13";
};
propagatedBuildInputs = [ requests ];
# requires network
doCheck = false;
meta = with stdenv.lib; {
description = "A python module that will check for package updates";
homepage = "https://github.com/bboe/update_checker";
license = licenses.bsd2;
};
}