pythonPackages.Fabric: 1.13.2 -> 2.4.0 refactor move to python-modules
This commit is contained in:
parent
d51311861c
commit
49719ae6e4
36
pkgs/development/python-modules/Fabric/default.nix
Normal file
36
pkgs/development/python-modules/Fabric/default.nix
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
{ pkgs
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, invoke
|
||||||
|
, paramiko
|
||||||
|
, cryptography
|
||||||
|
, pytest
|
||||||
|
, mock
|
||||||
|
, pytest-relaxed
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "fabric";
|
||||||
|
version = "2.4.0";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "93684ceaac92e0b78faae551297e29c48370cede12ff0f853cdebf67d4b87068";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ invoke paramiko cryptography ];
|
||||||
|
checkInputs = [ pytest mock pytest-relaxed ];
|
||||||
|
|
||||||
|
# ignore subprocess main errors (1) due to hardcoded /bin/bash
|
||||||
|
checkPhase = ''
|
||||||
|
rm tests/main.py
|
||||||
|
pytest tests
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with pkgs.lib; {
|
||||||
|
description = "Pythonic remote execution";
|
||||||
|
homepage = https://www.fabfile.org/;
|
||||||
|
license = licenses.bsd2;
|
||||||
|
maintainers = [ maintainers.costrouc ];
|
||||||
|
};
|
||||||
|
}
|
@ -2385,23 +2385,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
Fabric = buildPythonPackage rec {
|
Fabric = callPackage ../development/python-modules/Fabric { };
|
||||||
name = "Fabric-${version}";
|
|
||||||
version = "1.13.2";
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/F/Fabric/${name}.tar.gz";
|
|
||||||
sha256 = "0k944dxr41whw7ib6380q9x15wyskx7fqni656icdn8rzshn9bwq";
|
|
||||||
};
|
|
||||||
disabled = isPy3k;
|
|
||||||
doCheck = (!isPyPy); # https://github.com/fabric/fabric/issues/11891
|
|
||||||
propagatedBuildInputs = with self; [ paramiko pycrypto ];
|
|
||||||
buildInputs = with self; [ fudge_9 nose ];
|
|
||||||
meta = {
|
|
||||||
description = "Pythonic remote execution";
|
|
||||||
homepage = https://www.fabfile.org/;
|
|
||||||
license = licenses.bsd2;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
faulthandler = if ! isPy3k
|
faulthandler = if ! isPy3k
|
||||||
then callPackage ../development/python-modules/faulthandler {}
|
then callPackage ../development/python-modules/faulthandler {}
|
||||||
|
Loading…
Reference in New Issue
Block a user