summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/outdated/default.nix
blob: de9273915ab22792979ffc69ff2c0f0c08342a78 (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
31
32
33
34
35
36
37
38
39
40
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  littleutils,
  requests,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "outdated";
  version = "0.2.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "alexmojaki";
    repo = "outdated";
    tag = "v${version}";
    hash = "sha256-5VpPmgIcVtY97F0Hb0m9MuSW0zjaUJ18ATA4GBRw+jc=";
  };

  build-system = [ setuptools-scm ];

  dependencies = [
    littleutils
    requests
  ];

  # checks rely on internet connection
  doCheck = false;

  pythonImportsCheck = [ "outdated" ];

  meta = {
    description = "Mini-library which, given a package name and a version, checks if it's the latest version available on PyPI";
    homepage = "https://github.com/alexmojaki/outdated";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ gador ];
  };
}