mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
construct,
|
|
typing-extensions,
|
|
arrow,
|
|
cloudpickle,
|
|
numpy,
|
|
pytestCheckHook,
|
|
ruamel-yaml,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "construct-typing";
|
|
version = "0.6.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "timrid";
|
|
repo = "construct-typing";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-zXpxu+VUcepEoAPLQnSlMCZkt8fDsMCLS0HBKhaYD20=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
pythonRelaxDeps = [ "construct" ];
|
|
|
|
dependencies = [
|
|
construct
|
|
typing-extensions
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"construct-stubs"
|
|
"construct_typed"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
arrow
|
|
cloudpickle
|
|
numpy
|
|
pytestCheckHook
|
|
ruamel-yaml
|
|
];
|
|
|
|
disabledTests = [
|
|
# tests fail with construct>=2.10.70
|
|
"test_bitsinteger"
|
|
"test_bytesinteger"
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/timrid/construct-typing/releases/tag/v${version}";
|
|
description = "Extension for the python package 'construct' that adds typing features";
|
|
homepage = "https://github.com/timrid/construct-typing";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|