commit
d1d0ab9e36
21
pkgs/development/python-modules/xxhash/default.nix
Normal file
21
pkgs/development/python-modules/xxhash/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -1,14 +1,14 @@
|
|||||||
{ stdenv, fetchFromGitHub, ocamlPackages, writeScript
|
{ stdenv, fetchFromGitHub, ocamlPackages, writeScript
|
||||||
, dune, python3, rsync, buck, watchman }:
|
, dune, python3, rsync, buck, watchman, sqlite }:
|
||||||
let
|
let
|
||||||
# Manually set version - the setup script requires
|
# Manually set version - the setup script requires
|
||||||
# hg and git + keeping the .git directory around.
|
# 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 {
|
pyre-src = fetchFromGitHub {
|
||||||
owner = "facebook";
|
owner = "facebook";
|
||||||
repo = "pyre-check";
|
repo = "pyre-check";
|
||||||
rev = "v${pyre-version}";
|
rev = "v${pyre-version}";
|
||||||
sha256 = "1alkhdhvmigdhxvvarh0lr5s3b1s6q4arykip2dqb62vs8064s17";
|
sha256 = "057vy6zmgwsi0ag9n4m6sszhahmfk2s1ywm36nyfs7w4d0wnk92s";
|
||||||
};
|
};
|
||||||
versionFile = writeScript "version.ml" ''
|
versionFile = writeScript "version.ml" ''
|
||||||
cat > "./version.ml" <<EOF
|
cat > "./version.ml" <<EOF
|
||||||
@ -41,6 +41,8 @@ let
|
|||||||
ppxlib
|
ppxlib
|
||||||
dune
|
dune
|
||||||
ounit
|
ounit
|
||||||
|
base64
|
||||||
|
sqlite.dev
|
||||||
# python36Packages.python36Full # TODO
|
# python36Packages.python36Full # TODO
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -115,7 +117,16 @@ in python3.pkgs.buildPythonApplication rec {
|
|||||||
|
|
||||||
buildInputs = [ pyre-bin ];
|
buildInputs = [ pyre-bin ];
|
||||||
nativeBuildInputs = [ rsync ]; # only required for build-pypi-package.sh
|
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 = ''
|
buildPhase = ''
|
||||||
bash scripts/build-pypi-package.sh --version ${pyre-version} --bundle-typeshed ${typeshed}
|
bash scripts/build-pypi-package.sh --version ${pyre-version} --bundle-typeshed ${typeshed}
|
||||||
cp -r build/dist dist
|
cp -r build/dist dist
|
||||||
|
@ -4422,6 +4422,8 @@ in {
|
|||||||
|
|
||||||
xlwt = callPackage ../development/python-modules/xlwt { };
|
xlwt = callPackage ../development/python-modules/xlwt { };
|
||||||
|
|
||||||
|
xxhash = callPackage ../development/python-modules/xxhash { };
|
||||||
|
|
||||||
youtube-dl = callPackage ../tools/misc/youtube-dl {};
|
youtube-dl = callPackage ../tools/misc/youtube-dl {};
|
||||||
|
|
||||||
youtube-dl-light = callPackage ../tools/misc/youtube-dl {
|
youtube-dl-light = callPackage ../tools/misc/youtube-dl {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user