about summary refs log tree commit diff
path: root/pkgs/development/python-modules/spur/default.nix
blob: 6762556268fded7e2119f1a601ee01945e1367e5 (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
32
33
34
35
36
37
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  paramiko,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "spur";
  version = "0.3.23";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "mwilliamson";
    repo = "spur.py";
    rev = "refs/tags/${version}";
    hash = "sha256-LTkZ1p2P9fsD+gZEQZaCS68Q6nGc4qFGMNtH75gQmXQ=";
  };

  propagatedBuildInputs = [ paramiko ];

  # Tests require a running SSH server
  doCheck = false;

  pythonImportsCheck = [ "spur" ];

  meta = with lib; {
    description = "Python module to run commands and manipulate files locally or over SSH";
    homepage = "https://github.com/mwilliamson/spur.py";
    changelog = "https://github.com/mwilliamson/spur.py/blob/0.3.23/CHANGES";
    license = with licenses; [ bsd2 ];
    maintainers = with maintainers; [ fab ];
  };
}