summary refs log tree commit diff
path: root/pkgs/development/tools/pypi2nix/default.nix
blob: 3faaa48458e9082a395b6ccc600c6221ce40750e (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
{ python3
}:
with python3;

pkgs.buildPythonApplication rec {
  pname = "pypi2nix";
  version = "2.0.0";
  src = pkgs.fetchPypi {
    inherit pname version;
    sha256 = "0w9z07kdnfs96230jag8xgz4wx337bb3q3bvqxn3r31x8fsmz6rr";
  };
  checkInputs = with pkgs; [ pytest ];
  propagatedBuildInputs = with pkgs; [
    attrs
    click
    jinja2
    nix-prefetch-github
    packaging
    parsley
    setuptools
    toml
  ];
  checkPhase = "${python3.interpreter} -m pytest unittests -m 'not nix'";
}