about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/fastimport/default.nix
blob: bd5c270d686cbb964f5b251e68a9b6f381d4f875 (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
29
30
31
{ lib
, pythonOlder
, buildPythonPackage
, fetchPypi
, python
}:

buildPythonPackage rec {
  pname = "fastimport";
  version = "0.9.14";

  disabled = pythonOlder "3.5";

  src = fetchPypi {
    inherit pname version;
    sha256 = "6ac99dda4e7b0b3ae831507b6d0094802e6dd95891feafde8cc5c405b6c149ca";
  };

  checkPhase = ''
    ${python.interpreter} -m unittest discover
  '';

  pythonImportsCheck = [ "fastimport" ];

  meta = with lib; {
    homepage = "https://github.com/jelmer/python-fastimport";
    description = "VCS fastimport/fastexport parser";
    maintainers = with maintainers; [ koral ];
    license = licenses.gpl2Plus;
  };
}