mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
56 lines
1.0 KiB
Nix
56 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
setuptools-scm,
|
|
wheel,
|
|
|
|
numpy,
|
|
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "typing-validation";
|
|
version = "1.2.11";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hashberg-io";
|
|
repo = "typing-validation";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-0scXoAPkx/VBIbNRMtFoRRbmGpC2RzNRmQG4mRXSxrs=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
wheel
|
|
];
|
|
|
|
dependencies = [ typing-extensions ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
numpy
|
|
];
|
|
|
|
pythonImportsCheck = [ "typing_validation" ];
|
|
|
|
meta = with lib; {
|
|
description = "Simple library for runtime type-checking";
|
|
homepage = "https://github.com/hashberg-io/typing-validation";
|
|
changelog = "https://github.com/hashberg-io/typing-validation/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ vizid ];
|
|
};
|
|
}
|