mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
Merge master into staging-next
This commit is contained in:
33
pkgs/development/python-modules/awscrt/default.nix
Normal file
33
pkgs/development/python-modules/awscrt/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, cmake, perl, stdenv, gcc10, darwin }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "awscrt";
|
||||
version = "0.11.13";
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin
|
||||
(with darwin.apple_sdk.frameworks; [ Security ]);
|
||||
|
||||
# Required to suppress -Werror
|
||||
# https://github.com/NixOS/nixpkgs/issues/39687
|
||||
hardeningDisable = lib.optional stdenv.cc.isClang "strictoverflow";
|
||||
|
||||
nativeBuildInputs = [ cmake ] ++ lib.optionals stdenv.isAarch64 ([ gcc10 perl ]);
|
||||
|
||||
dontUseCmakeConfigure = true;
|
||||
|
||||
# Unable to import test module
|
||||
# https://github.com/awslabs/aws-crt-python/issues/281
|
||||
doCheck = false;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-G/bf2AzWp8AHL4of0zfX3jIYyTtmTLBIC2ZKiMi19c0=";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/awslabs/aws-crt-python";
|
||||
description = "Python bindings for the AWS Common Runtime";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ davegallant ];
|
||||
};
|
||||
}
|
||||
@@ -3,8 +3,7 @@
|
||||
, docutils
|
||||
, fetchFromGitHub
|
||||
, isPy27
|
||||
, nose
|
||||
, pytest
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -21,7 +20,13 @@ buildPythonPackage rec {
|
||||
|
||||
checkInputs = [
|
||||
docutils
|
||||
pytest
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# file imports 'dummy_threading', which was deprecated since py37
|
||||
# and removed in py39
|
||||
"test_python_toolbox/test_cute_profile/test_cute_profile.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
53
pkgs/development/python-modules/pytomlpp/default.nix
Normal file
53
pkgs/development/python-modules/pytomlpp/default.nix
Normal file
@@ -0,0 +1,53 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, pybind11
|
||||
, pytestCheckHook
|
||||
, dateutil
|
||||
, doxygen
|
||||
, python
|
||||
, pelican
|
||||
, matplotlib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytomlpp";
|
||||
version = "0.3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bobfang1992";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
fetchSubmodules = true;
|
||||
sha256 = "1h06a2r0f5q4mml485113mn7a7585zmhqsk2p1apcybyydllcqda";
|
||||
};
|
||||
|
||||
buildInputs = [ pybind11 ];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
|
||||
dateutil
|
||||
doxygen
|
||||
python
|
||||
pelican
|
||||
matplotlib
|
||||
];
|
||||
|
||||
# pelican requires > 2.7
|
||||
doCheck = !pythonOlder "3.6";
|
||||
|
||||
preCheck = ''
|
||||
cd tests
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "pytomlpp" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A python wrapper for tomlplusplus";
|
||||
homepage = "https://github.com/bobfang1992/pytomlpp";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ evils ];
|
||||
};
|
||||
}
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytube";
|
||||
version = "10.7.2";
|
||||
version = "10.8.1";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
@@ -15,7 +15,7 @@ buildPythonPackage rec {
|
||||
owner = "pytube";
|
||||
repo = "pytube";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-85pHzfQYyqwX8mQ5msIojM/0FSfeaC12KJw4mXmji3g=";
|
||||
sha256 = "sha256-QPYu6UA0CEf/FSFoN+OfjhbDgkrMOjxaxNpFcDQzAz0=";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
|
||||
Reference in New Issue
Block a user