python3Packages.soco: 0.21.2 -> 0.22.3
This commit is contained in:
parent
15a4732733
commit
7101c28779
|
@ -1,58 +1,32 @@
|
||||||
{ buildPythonPackage
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
|
||||||
, graphviz
|
, graphviz
|
||||||
, ifaddr
|
, ifaddr
|
||||||
, isPy27
|
, pythonOlder
|
||||||
, lib
|
|
||||||
, mock
|
, mock
|
||||||
, nix-update-script
|
, nix-update-script
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, requests
|
, requests
|
||||||
, requests-mock
|
, requests-mock
|
||||||
, sphinx
|
|
||||||
, sphinx_rtd_theme
|
|
||||||
, toml
|
|
||||||
, xmltodict
|
, xmltodict
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "soco";
|
pname = "soco";
|
||||||
version = "0.21.2";
|
version = "0.22.3";
|
||||||
disabled = isPy27;
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
# N.B. We fetch from GitHub because the PyPI tarball doesn't contain the
|
|
||||||
# required files to run the tests.
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "SoCo";
|
owner = "SoCo";
|
||||||
repo = "SoCo";
|
repo = "SoCo";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-CCgkzUkt9YqTJt9tPBLmYXW6ZuRoMDd7xahYmNXgfM0=";
|
sha256 = "sha256-RCWXXk5aQQYqyxm65M96XBoMS5UlYqyAz3aM/DVghRw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://patch-diff.githubusercontent.com/raw/SoCo/SoCo/pull/811.patch";
|
|
||||||
sha256 = "sha256-GBd74c8zc25ROO411SZ9TTa+bi8yXJaaOQqY9FM1qj4=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
# N.B. These exist because:
|
|
||||||
# 1. Upstream's pinning isn't well maintained, leaving dependency versions no
|
|
||||||
# longer in nixpkgs.
|
|
||||||
# 2. There is no benefit for us to be running linting and coverage tests.
|
|
||||||
postPatch = ''
|
|
||||||
sed -i "/black/d" ./requirements-dev.txt
|
|
||||||
sed -i "/coveralls/d" ./requirements-dev.txt
|
|
||||||
sed -i "/flake8/d" ./requirements-dev.txt
|
|
||||||
sed -i "/pylint/d" ./requirements-dev.txt
|
|
||||||
sed -i "/pytest-cov/d" ./requirements-dev.txt
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
ifaddr
|
ifaddr
|
||||||
requests
|
requests
|
||||||
toml
|
|
||||||
xmltodict
|
xmltodict
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -61,10 +35,10 @@ buildPythonPackage rec {
|
||||||
graphviz
|
graphviz
|
||||||
mock
|
mock
|
||||||
requests-mock
|
requests-mock
|
||||||
sphinx
|
|
||||||
sphinx_rtd_theme
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "soco" ];
|
||||||
|
|
||||||
passthru.updateScript = nix-update-script {
|
passthru.updateScript = nix-update-script {
|
||||||
attrPath = "python3Packages.${pname}";
|
attrPath = "python3Packages.${pname}";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue