Merge branch 'master' into staging-next
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, pytest, pytestrunner, pytestcov, mock, glibcLocales, lxml, boto3, requests, click, configparser }:
|
||||
, pytest, pytestrunner, pytestcov, mock, glibcLocales, lxml, boto3
|
||||
, requests, click, configparser, fido2, isPy27 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aws-adfs";
|
||||
version = "1.19.1";
|
||||
version = "1.20.0";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "20b2ad44d19aa494fa11cb2d1290359b3a7a0c6c8908179b4af0c9367d83e370";
|
||||
sha256 = "1j18ffq5z8bcajavnlpbfhxrcadld5iv5gsfxg543yvdsp6hn2dg";
|
||||
};
|
||||
|
||||
# Relax version constraint
|
||||
@@ -22,7 +24,7 @@ buildPythonPackage rec {
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
|
||||
checkInputs = [ glibcLocales pytest pytestrunner pytestcov mock ];
|
||||
propagatedBuildInputs = [ lxml boto3 requests click configparser ];
|
||||
propagatedBuildInputs = [ lxml boto3 requests click configparser fido2 ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Command line tool to ease aws cli authentication against ADFS";
|
||||
|
||||
35
pkgs/development/python-modules/ckcc-protocol/default.nix
Normal file
35
pkgs/development/python-modules/ckcc-protocol/default.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, click
|
||||
, ecdsa
|
||||
, hidapi
|
||||
, lib
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, pyaes
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ckcc-protocol";
|
||||
version = "0.8.0";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1mbs9l8qycy50j5lq6az7l5d8i40nb0vmlyhcyax298qp6c1r1gh";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ click ecdsa hidapi pyaes ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Communicate with your Coldcard using Python";
|
||||
homepage = https://github.com/Coldcard/ckcc-protocol;
|
||||
license = licenses.gpl3;
|
||||
maintainers = [ maintainers.hkjn ];
|
||||
};
|
||||
}
|
||||
@@ -4,20 +4,23 @@
|
||||
, setuptools
|
||||
, nose
|
||||
, pkgs
|
||||
, isPy27
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pycdio";
|
||||
version = "2.1.0";
|
||||
disabled = !isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "01b7vqqfry071p60sabydym7r3m3rxszyqpdbs1qi5rk2sfyblnn";
|
||||
};
|
||||
|
||||
prePatch = "sed -i -e '/DRIVER_BSDI/d' pycdio.py";
|
||||
prePatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace 'library_dirs=library_dirs' 'library_dirs=[dir.decode("utf-8") for dir in library_dirs]' \
|
||||
--replace 'include_dirs=include_dirs' 'include_dirs=[dir.decode("utf-8") for dir in include_dirs]' \
|
||||
--replace 'runtime_library_dirs=runtime_lib_dirs' 'runtime_library_dirs=[dir.decode("utf-8") for dir in runtime_lib_dirs]'
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
patchShebangs .
|
||||
|
||||
23
pkgs/development/python-modules/pymavlink/default.nix
Normal file
23
pkgs/development/python-modules/pymavlink/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, future, lxml }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pymavlink";
|
||||
version = "2.4.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0y9rz3piddzdjpp7d5w9xi6lc9v9b4p4375a5hrfiphrmhds85i3";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ future lxml ];
|
||||
|
||||
# No tests included in PyPI tarball
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python MAVLink interface and utilities";
|
||||
homepage = "https://github.com/ArduPilot/pymavlink";
|
||||
license = licenses.lgpl3;
|
||||
maintainers = with maintainers; [ lopsided98 ];
|
||||
};
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
{ lib, fetchPypi, isPy3k, buildPythonPackage, numpy, root, nose }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "root_numpy";
|
||||
version = "4.8.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "5842bbcde92133f60a61f56e9f0a875a0dbc2a567cc65a9ac141ecd72e416878";
|
||||
};
|
||||
|
||||
disabled = isPy3k; # blocked by #27649
|
||||
checkInputs = [ nose ];
|
||||
checkPhase = ''
|
||||
python setup.py install_lib -d .
|
||||
nosetests -s -v root_numpy
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ numpy root ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = http://scikit-hep.org/root_numpy;
|
||||
license = licenses.bsd3;
|
||||
description = "The interface between ROOT and NumPy";
|
||||
maintainers = with maintainers; [ veprbl ];
|
||||
};
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
{ lib, fetchPypi, isPy3k, buildPythonPackage, numpy, matplotlib, root, root_numpy, tables, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "rootpy";
|
||||
version = "1.0.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0zp2bh87l3f0shiqslbvfmavfdj8m80y8fsrz8rsi5pzqj7zr1bx";
|
||||
};
|
||||
|
||||
disabled = isPy3k;
|
||||
|
||||
propagatedBuildInputs = [ matplotlib numpy root root_numpy tables ];
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
checkPhase = ''
|
||||
# tests fail with /homeless-shelter
|
||||
export HOME=$PWD
|
||||
# skip problematic tests
|
||||
py.test rootpy -k "not test_stl and not test_cpp and not test_xrootd_glob_single and not test_xrootd_glob_multiple"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = http://www.rootpy.org;
|
||||
license = licenses.bsd3;
|
||||
description = "Pythonic interface to the ROOT framework";
|
||||
maintainers = with maintainers; [ veprbl ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user