Merge staging-next into staging
This commit is contained in:
commit
1f42117e03
3 changed files with 23 additions and 9 deletions
|
@ -1,25 +1,35 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, isPyPy
|
||||
, lazy-object-proxy
|
||||
, wrapt
|
||||
, typed-ast
|
||||
, pytestCheckHook
|
||||
, setuptools-scm
|
||||
, pylint
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "astroid";
|
||||
version = "2.5.1";
|
||||
version = "2.5.6"; # Check whether the version is compatible with pylint
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "cfc35498ee64017be059ceffab0a25bedf7548ab76f2bea691c5565896e7128d";
|
||||
src = fetchFromGitHub {
|
||||
owner = "PyCQA";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-/nWXzuWkerUDvFT/tJTZuhfju46MAM0cwosVH9BXoY8=";
|
||||
};
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION=version;
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
# From astroid/__pkginfo__.py
|
||||
propagatedBuildInputs = [
|
||||
lazy-object-proxy
|
||||
|
@ -30,6 +40,10 @@ buildPythonPackage rec {
|
|||
pytestCheckHook
|
||||
];
|
||||
|
||||
passthru.tests = {
|
||||
inherit pylint;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "An abstract syntax tree for Python with inference support";
|
||||
homepage = "https://github.com/PyCQA/astroid";
|
||||
|
|
|
@ -15,13 +15,13 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "pylint";
|
||||
version = "2.7.2";
|
||||
version = "2.7.4";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0e21d3b80b96740909d77206d741aa3ce0b06b41be375d92e1f3244a274c1f8a";
|
||||
sha256 = "bd38914c7731cdc518634a8d3c5585951302b6e2b6de60fbb3f7a0220e21eeee";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
|
@ -73,10 +73,10 @@ stdenv.mkDerivation rec {
|
|||
|
||||
substituteInPlace ../programs/zstdless \
|
||||
--replace "zstdcat" "$bin/bin/zstdcat"
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
install_name_tool -change @rpath/libzstd.1.dylib $out/lib/libzstd.1.dylib $bin/bin/pzstd
|
||||
'' + lib.optionalString buildContrib ''
|
||||
cp contrib/pzstd/pzstd $bin/bin/pzstd
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
install_name_tool -change @rpath/libzstd.1.dylib $out/lib/libzstd.1.dylib $bin/bin/pzstd
|
||||
'';
|
||||
|
||||
outputs = [ "bin" "dev" ]
|
||||
|
|
Loading…
Reference in a new issue