Merge master into staging-next
This commit is contained in:
@@ -13,11 +13,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "boto3";
|
||||
version = "1.9.152"; # N.B: if you change this, change botocore too
|
||||
version = "1.9.160"; # N.B: if you change this, change botocore too
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0qspp97rddshjfqmmnqbvrszr66wq0ag05j8lcfsb9rj6ymz5s5s";
|
||||
sha256 = "1qxhdmv58k2ipk47fbnpdg6jmbp7dca86s6c6gdm3d79aw17391f";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ botocore jmespath s3transfer ] ++ lib.optionals (!isPy3k) [ futures ];
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "botocore";
|
||||
version = "1.12.152"; # N.B: if you change this, change boto3 and awscli to a matching version
|
||||
version = "1.12.160"; # N.B: if you change this, change boto3 and awscli to a matching version
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1pj9k3x82f9cgr0flg0m5n6fh8rkxy3c0z1qgx5nqvyidswn793r";
|
||||
sha256 = "18jhc6v2xcd20hlq69ykapmxgd9k7szjbp1ndmgxi4g8w37fvcqp";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
, fetchFromGitHub
|
||||
, django
|
||||
, pygments
|
||||
, simplejson
|
||||
@@ -12,26 +13,50 @@
|
||||
, pytz
|
||||
, pillow
|
||||
, mock
|
||||
, gprof2dot
|
||||
, freezegun
|
||||
, contextlib2
|
||||
, networkx
|
||||
, pydot
|
||||
, factory_boy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-silk";
|
||||
version = "3.0.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8dd5b78531360bd8c3d571384f9f4f82ef03e1764e30dd4621c5638f5c973a1d";
|
||||
# pypi tarball doesn't include test project
|
||||
src = fetchFromGitHub {
|
||||
owner = "jazzband";
|
||||
repo = "django-silk";
|
||||
rev = version;
|
||||
sha256 = "1fbaafc2gx01gscdalp6hj6bz4b0cmq59lgmvsydw7jkds4mps7c";
|
||||
};
|
||||
|
||||
doCheck = false;
|
||||
# "test_time_taken" tests aren't suitable for reproducible execution, but django's
|
||||
# test runner doesn't have an easy way to ignore tests - so instead prevent it from picking
|
||||
# them up as tests
|
||||
postPatch = ''
|
||||
substituteInPlace project/tests/test_silky_profiler.py \
|
||||
--replace "def test_time_taken" "def _test_time_taken"
|
||||
'';
|
||||
|
||||
buildInputs = [ mock ];
|
||||
propagatedBuildInputs = [ django pygments simplejson dateutil requests sqlparse jinja2 autopep8 pytz pillow ];
|
||||
propagatedBuildInputs = [
|
||||
django pygments simplejson dateutil requests
|
||||
sqlparse jinja2 autopep8 pytz pillow gprof2dot
|
||||
];
|
||||
|
||||
checkInputs = [ freezegun contextlib2 networkx pydot factory_boy ];
|
||||
checkPhase = ''
|
||||
cd project
|
||||
DB=sqlite3 DB_NAME=db.sqlite3 ${python.interpreter} manage.py test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Silky smooth profiling for the Django Framework";
|
||||
homepage = https://github.com/mtford90/silk;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ris ];
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ lib, fetchFromGitHub, buildPythonApplication }:
|
||||
{ lib, fetchFromGitHub, buildPythonApplication, python, graphviz }:
|
||||
|
||||
buildPythonApplication {
|
||||
name = "gprof2dot-2017-09-19";
|
||||
@@ -10,11 +10,13 @@ buildPythonApplication {
|
||||
sha256 = "1b5wvjv5ykbhz7aix7l3y7mg1hxi0vgak4a49gr92sdlz8blj51v";
|
||||
};
|
||||
|
||||
checkInputs = [ graphviz ];
|
||||
checkPhase = "${python.interpreter} tests/test.py";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://github.com/jrfonseca/gprof2dot;
|
||||
description = "Python script to convert the output from many profilers into a dot graph";
|
||||
license = licenses.lgpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.pmiddend ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, redis
|
||||
, pytest
|
||||
, process-tests
|
||||
, pkgs
|
||||
, withDjango ? false, django_redis
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-redis-lock";
|
||||
version = "3.3.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "5316d473ce6ce86a774b9f9c110d84c3a9bd1a2abfda5d99e9c0c8a872a8e6d6";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest process-tests pkgs.redis ];
|
||||
|
||||
checkPhase = ''
|
||||
pytest tests/
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ redis ]
|
||||
++ stdenv.lib.optional withDjango django_redis;
|
||||
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/ionelmc/python-redis-lock";
|
||||
license = licenses.bsd2;
|
||||
description = "Lock context manager implemented via redis SETNX/BLPOP";
|
||||
maintainers = with maintainers; [ vanschelven ];
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, numpy, nose, pyyaml }:
|
||||
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, numpy, nose, pyyaml }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "spglib";
|
||||
@@ -9,6 +9,15 @@ buildPythonPackage rec {
|
||||
sha256 = "15b02b74c0f06179bc3650c43a710a5200abbba387c6eda3105bfd9236041443";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "fix-assertions.patch";
|
||||
url = https://github.com/atztogo/spglib/commit/d57070831585a6f02dec0a31d25b375ba347798c.patch;
|
||||
stripLen = 1;
|
||||
sha256 = "0crmkc498rbrawiy9zbl39qis2nmsbfr4s6kk6k3zhdy8z2ppxw7";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ numpy ];
|
||||
|
||||
checkInputs = [ nose pyyaml ];
|
||||
|
||||
24
pkgs/development/python-modules/strategies/default.nix
Normal file
24
pkgs/development/python-modules/strategies/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, multipledispatch, toolz
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "strategies";
|
||||
version = "0.2.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "02i4ydrs9k61p8iv2vl2akks8p9gc88rw8031wlwb1zqsyjmb328";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ multipledispatch toolz ];
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
meta = {
|
||||
description = "A Python library for control flow programming";
|
||||
homepage = "https://github.com/logpy/strategies";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ suhr ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user