Merge pull request #58618 from teh/master

pyre: 0.0.20 -> 0.0.22
This commit is contained in:
Pascal Wittmann 2019-04-10 07:43:37 +02:00 committed by GitHub
commit d1d0ab9e36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 38 additions and 4 deletions

View File

@ -0,0 +1,21 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
version = "1.3.0";
pname = "xxhash";
src = fetchPypi {
inherit pname version;
sha256 = "1rhrqrlq4n3vgqd1fv1dcc5ga5dzy9qbd40p8rsqqhh5klxg48gy";
};
meta = with stdenv.lib; {
homepage = https://github.com/ifduyue/python-xxhash;
description = "Python Binding for xxHash https://pypi.org/project/xxhash/";
license = licenses.bsd2;
maintainers = [ maintainers.teh ];
};
}

View File

@ -1,14 +1,14 @@
{ stdenv, fetchFromGitHub, ocamlPackages, writeScript
, dune, python3, rsync, buck, watchman }:
, dune, python3, rsync, buck, watchman, sqlite }:
let
# Manually set version - the setup script requires
# hg and git + keeping the .git directory around.
pyre-version = "0.0.20"; # also change typeshed revision below with $pyre-src/.typeshed-version
pyre-version = "0.0.22"; # also change typeshed revision below with $pyre-src/.typeshed-version
pyre-src = fetchFromGitHub {
owner = "facebook";
repo = "pyre-check";
rev = "v${pyre-version}";
sha256 = "1alkhdhvmigdhxvvarh0lr5s3b1s6q4arykip2dqb62vs8064s17";
sha256 = "057vy6zmgwsi0ag9n4m6sszhahmfk2s1ywm36nyfs7w4d0wnk92s";
};
versionFile = writeScript "version.ml" ''
cat > "./version.ml" <<EOF
@ -41,6 +41,8 @@ let
ppxlib
dune
ounit
base64
sqlite.dev
# python36Packages.python36Full # TODO
];
@ -115,7 +117,16 @@ in python3.pkgs.buildPythonApplication rec {
buildInputs = [ pyre-bin ];
nativeBuildInputs = [ rsync ]; # only required for build-pypi-package.sh
propagatedBuildInputs = with python3.pkgs; [ docutils typeshed ];
propagatedBuildInputs = with python3.pkgs; [
docutils
typeshed
click-log
ipython
sqlalchemy
munch
xxhash
ujson
];
buildPhase = ''
bash scripts/build-pypi-package.sh --version ${pyre-version} --bundle-typeshed ${typeshed}
cp -r build/dist dist

View File

@ -4422,6 +4422,8 @@ in {
xlwt = callPackage ../development/python-modules/xlwt { };
xxhash = callPackage ../development/python-modules/xxhash { };
youtube-dl = callPackage ../tools/misc/youtube-dl {};
youtube-dl-light = callPackage ../tools/misc/youtube-dl {