about summary refs log tree commit diff
path: root/pkgs/development/python-modules/yarg/default.nix
blob: f6e08ecd05acb452adca434b4948c76c52ebc1ae (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
{ lib, buildPythonPackage, fetchFromGitHub, requests, nose, mock }:

buildPythonPackage rec {
  pname = "yarg";
  version = "0.1.9";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "kura";
    repo = pname;
    rev = version;
    sha256 = "1isq02s404fp9whkm8w2kvb2ik1sz0r258iby0q532zw81lga0d0";
  };

  propagatedBuildInputs = [ requests ];

  nativeCheckInputs = [ nose mock ];
  checkPhase = ''
    nosetests
  '';

  meta = with lib; {
    description = "An easy to use PyPI client";
    homepage = "https://yarg.readthedocs.io";
    license = licenses.mit;
    maintainers = with maintainers; [ psyanticy ];
  };
}