mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Merge pull request #330236 from pyrox0/denose/traittypes
python312Packages.traittypes: unstable-2019-06-23 -> 0.2.1-unstable-2020-07-17
This commit is contained in:
commit
89b6c71cc4
1 changed files with 15 additions and 23 deletions
|
@ -2,10 +2,9 @@
|
|||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
isPy27,
|
||||
pytestCheckHook,
|
||||
nose,
|
||||
setuptools,
|
||||
numpy,
|
||||
pandas,
|
||||
xarray,
|
||||
|
@ -14,47 +13,40 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "traittypes";
|
||||
version = "unstable-2019-06-23";
|
||||
format = "setuptools";
|
||||
version = "0.2.1-unstable-2020-07-17";
|
||||
pyproject = true;
|
||||
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jupyter-widgets";
|
||||
repo = pname;
|
||||
rev = "0a030b928991dec732c17a7a1cb13acbcd7650a2";
|
||||
sha256 = "0rlm5krmq6n8yi47dgdsjyrkz3m079pndpbzkz2gx98pb3jd9pjs";
|
||||
rev = "af2ebeec9e58b73a12d4cf841bd506d6eadb8868";
|
||||
hash = "sha256-q7kt8b+yDHsWML/wCeND9PrZMVjemhzG7Ih1OtHbnTw=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "fix-intarray-test.patch";
|
||||
url = "https://github.com/minrk/traittypes/commit/a02441e5b259e5858453a853207260c9bd4efbb5.patch";
|
||||
sha256 = "120dsvr5nksizw75z1ah3h38mi399fxbvz5anakica557jahi0aw";
|
||||
})
|
||||
];
|
||||
postPatch = ''
|
||||
substituteInPlace traittypes/tests/test_traittypes.py \
|
||||
--replace-fail "np.int" "int"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ traitlets ];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [ traitlets ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
numpy
|
||||
pandas
|
||||
xarray
|
||||
nose
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTestPaths = lib.optionals (lib.versionAtLeast numpy.version "1.17") [
|
||||
# https://github.com/jupyter-widgets/traittypes/blob/master/setup.py#L86-L87
|
||||
"traittypes/tests/test_traittypes.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "traittypes" ];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Trait types for NumPy, SciPy, XArray, and Pandas";
|
||||
homepage = "https://github.com/jupyter-widgets/traittypes";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ bcdarwin ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue