Merge remote-tracking branch 'upstream/master' into staging
This commit is contained in:
@@ -1,19 +1,30 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, six }:
|
||||
{ stdenv, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, six
|
||||
, mock, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "configobj";
|
||||
version = "5.0.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2";
|
||||
# Pypi archives don't contain the tests
|
||||
src = fetchFromGitHub {
|
||||
owner = "DiffSK";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0x97794nk3dfn0i3si9fv7y19jnpnarb34bkdwlz7ii7ag6xihhw";
|
||||
};
|
||||
|
||||
# error: invalid command 'test'
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
checkPhase = ''
|
||||
pytest --deselect=tests/test_configobj.py::test_options_deprecation
|
||||
'';
|
||||
|
||||
checkInputs = [ mock pytest ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Config file reading, writing and validation";
|
||||
homepage = https://pypi.python.org/pypi/configobj;
|
||||
|
||||
21
pkgs/development/python-modules/contextvars/default.nix
Normal file
21
pkgs/development/python-modules/contextvars/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy36, immutables }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "contextvars";
|
||||
version = "2.2";
|
||||
disabled = !isPy36;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "046b385nfzkjh0wqmd268p2jkgn9fg6hz40npq7j1w3c8aqzhwvx";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ immutables ];
|
||||
|
||||
meta = {
|
||||
description = "A backport of the Python 3.7 contextvars module for Python 3.6";
|
||||
homepage = https://github.com/MagicStack/contextvars;
|
||||
license = with lib.licenses; [ asl20 ];
|
||||
maintainers = with lib.maintainers; [ catern ];
|
||||
};
|
||||
}
|
||||
19
pkgs/development/python-modules/immutables/default.nix
Normal file
19
pkgs/development/python-modules/immutables/default.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "immutables";
|
||||
version = "0.5";
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1hba0vkqanwfnb5b3rs14bs7schsmczhan5nd93c1i6fzi17glap";
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "An immutable mapping type for Python";
|
||||
homepage = https://github.com/MagicStack/immutables;
|
||||
license = with lib.licenses; [ asl20 ];
|
||||
maintainers = with lib.maintainers; [ catern ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{ lib, stdenv, buildPythonPackage, fetchPypi, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "prometheus_client";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1r3510jq6iryd2a8jln2qpvqy112y5502ncbfkn116xl7gj74r6r";
|
||||
};
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Prometheus instrumentation library for Python applications";
|
||||
homepage = https://github.com/prometheus/client_python;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user