depot/third_party/nixpkgs/pkgs/development/python-modules/spur/default.nix

38 lines
861 B
Nix
Raw Normal View History

{
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 ];
};
}