commit
ba5812c3cd
@ -0,0 +1,39 @@ |
||||
{ fetchFromGitHub |
||||
, gcc |
||||
, lib |
||||
, libnl |
||||
, libpcap |
||||
, pkg-config |
||||
, stdenv |
||||
, writeShellScriptBin |
||||
}: |
||||
stdenv.mkDerivation rec { |
||||
pname = "nmrpflash"; |
||||
version = "0.9.16"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "jclehner"; |
||||
repo = "nmrpflash"; |
||||
rev = "v${version}"; |
||||
sha256 = "sha256-0nqdbXf1syUe7o5hoNIKLruKxkNaUsGolfZzoQY15j4=="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ pkg-config ]; |
||||
|
||||
buildInputs = [ libnl libpcap ]; |
||||
|
||||
PREFIX = "${placeholder "out"}"; |
||||
STANDALONE_VERSION = "${version}"; |
||||
|
||||
preInstall = '' |
||||
mkdir -p $out/bin |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = "Netgear Unbrick Utility"; |
||||
homepage = "https://github.com/jclehner/nmrpflash"; |
||||
license = licenses.gpl3; |
||||
maintainers = with maintainers; [ dadada ]; |
||||
platforms = platforms.unix; |
||||
}; |
||||
} |
@ -0,0 +1,68 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, pythonOlder |
||||
, flit-core |
||||
, z3 |
||||
, astroid |
||||
, pytestCheckHook |
||||
, hypothesis |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "deal-solver"; |
||||
version = "0.1.0"; |
||||
format = "pyproject"; |
||||
disabled = pythonOlder "3.6"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "life4"; |
||||
repo = pname; |
||||
rev = "refs/tags/${version}"; |
||||
hash = "sha256-eSSyLBwPc0rrfew91nLBagYDD6aJRyx0cE9YTTSODI8="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ |
||||
flit-core |
||||
]; |
||||
|
||||
postPatch = '' |
||||
# Use upstream z3 implementation |
||||
substituteInPlace pyproject.toml \ |
||||
--replace "\"z3-solver\"," "" \ |
||||
--replace "\"--cov=deal_solver\"," "" \ |
||||
--replace "\"--cov-report=html\"," "" \ |
||||
--replace "\"--cov-report=xml\"," "" \ |
||||
--replace "\"--cov-report=term-missing:skip-covered\"," "" \ |
||||
--replace "\"--cov-fail-under=100\"," "" |
||||
''; |
||||
|
||||
propagatedBuildInputs = [ |
||||
z3 |
||||
astroid |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
hypothesis |
||||
]; |
||||
|
||||
disabledTests = [ |
||||
# z3 assertion error |
||||
"test_expr_asserts_ok" |
||||
]; |
||||
|
||||
disabledTestPaths = [ |
||||
# regex matching seems flaky on tests |
||||
"tests/test_stdlib/test_re.py" |
||||
]; |
||||
|
||||
pythonImportsCheck = [ "deal_solver" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "Z3-powered solver (theorem prover) for deal"; |
||||
homepage = "https://github.com/life4/deal-solver"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ gador ]; |
||||
}; |
||||
} |
@ -0,0 +1,100 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, pythonOlder |
||||
, fetchFromGitHub |
||||
, flit-core |
||||
, astroid |
||||
, pytestCheckHook |
||||
, docstring-parser |
||||
, isort |
||||
, marshmallow |
||||
, pytest-cov |
||||
, sphinx |
||||
, hypothesis |
||||
, vaa |
||||
, deal-solver |
||||
, pygments |
||||
, typeguard |
||||
, coverage |
||||
, urllib3 |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "deal"; |
||||
version = "4.23.3"; |
||||
format = "pyproject"; |
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "life4"; |
||||
repo = pname; |
||||
rev = "refs/tags/${version}"; |
||||
hash = "sha256-duFxe2KSQQb7HB5KrrE32xzTb6QkQcrQssiuXLKao50="; |
||||
}; |
||||
|
||||
postPatch = '' |
||||
# don't do coverage |
||||
substituteInPlace pyproject.toml \ |
||||
--replace "\"--cov-fail-under=100\"," "" \ |
||||
--replace "\"--cov=deal\"," "" \ |
||||
--replace "\"--cov-report=html\"," "" \ |
||||
--replace "\"--cov-report=term-missing:skip-covered\"," "" |
||||
''; |
||||
|
||||
nativeBuildInputs = [ |
||||
flit-core |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
astroid |
||||
deal-solver |
||||
pygments |
||||
typeguard |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
|
||||
docstring-parser |
||||
marshmallow |
||||
sphinx |
||||
hypothesis |
||||
vaa |
||||
urllib3 |
||||
]; |
||||
|
||||
disabledTests = [ |
||||
# needs internet access |
||||
"test_smoke_has" |
||||
"test_pure_offline" |
||||
"test_raises_doesnt_override_another_contract" |
||||
"test_raises_doesnt_override_another_contract_async" |
||||
"test_raises_generator" |
||||
# AttributeError: module 'vaa' has no attribute 'Error' |
||||
"test_source_vaa_scheme" |
||||
"test_vaa_scheme_and_custom_exception" |
||||
"test_scheme_string_validation_args_correct" |
||||
"test_method_chain_decorator_with_scheme_is_fulfilled" |
||||
"test_scheme_contract_is_satisfied_when_setting_arg" |
||||
"test_scheme_contract_is_satisfied_within_chain" |
||||
"test_scheme_errors_rewrite_message" |
||||
]; |
||||
|
||||
disabledTestPaths = [ |
||||
# needs internet access |
||||
"tests/test_runtime/test_offline.py" |
||||
]; |
||||
|
||||
pythonImportsCheck = [ "deal" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "Library for design by contract (DbC) and checking values, exceptions, and side-effects"; |
||||
longDescription = '' |
||||
In a nutshell, deal empowers you to write bug-free code. |
||||
By adding a few decorators to your code, you get for free tests, static analysis, formal verification, and much more |
||||
''; |
||||
homepage = "https://github.com/life4/deal"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ gador ]; |
||||
}; |
||||
} |
@ -0,0 +1,31 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, pythonOlder |
||||
, fetchFromGitHub |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dpcontracts"; |
||||
version = "unstable-2018-11-20"; |
||||
format = "setuptools"; |
||||
disabled = pythonOlder "3.5"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "deadpixi"; |
||||
repo = "contracts"; |
||||
rev = "45cb8542272c2ebe095c6efb97aa9407ddc8bf3c"; |
||||
hash = "sha256-FygJPXo7lZ9tlfqY6KmPJ3PLIilMGLBr3013uj9hCEs="; |
||||
}; |
||||
|
||||
# package does not have any tests |
||||
doCheck = false; |
||||
|
||||
pythonImportsCheck = [ "dpcontracts" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "Provides a collection of decorators that makes it easy to write software using contracts"; |
||||
homepage = "https://github.com/deadpixi/contracts"; |
||||
license = licenses.lgpl3Only; |
||||
maintainers = with maintainers; [ gador ]; |
||||
}; |
||||
} |
@ -0,0 +1,47 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, funcy |
||||
, pytestCheckHook |
||||
, pytest-mock |
||||
, pytest-test-utils |
||||
, pythonOlder |
||||
, tabulate |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dvc-render"; |
||||
version = "0.0.5"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "iterative"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
hash = "sha256-dL+ampYgcC77G89rnh7t6lVp7WoIR85gjP0eg89ci3g="; |
||||
}; |
||||
|
||||
propagatedBuildInputs = [ |
||||
funcy |
||||
tabulate |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
pytest-mock |
||||
pytest-test-utils |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dvc_render" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Library for rendering DVC plots"; |
||||
homepage = "https://github.com/iterative/dvclive"; |
||||
license = licenses.asl20; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,40 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, dvc-render |
||||
, fetchFromGitHub |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dvclive"; |
||||
version = "0.8.2"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.6"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "iterative"; |
||||
repo = pname; |
||||
rev = version; |
||||
hash = "sha256-ditc4WWTEuO4ACqL87BNgjm1B6Aj6PPWrFX+OoF5jOI="; |
||||
}; |
||||
|
||||
propagatedBuildInputs = [ |
||||
dvc-render |
||||
]; |
||||
|
||||
# Circular dependency with dvc |
||||
doCheck = false; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dvclive" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Library for logging machine learning metrics and other metadata in simple file formats"; |
||||
homepage = "https://github.com/iterative/dvclive"; |
||||
license = licenses.asl20; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,78 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, pythonOlder |
||||
, fetchFromGitHub |
||||
, asttokens |
||||
, typing-extensions |
||||
, pytestCheckHook |
||||
, yapf |
||||
, docutils |
||||
, pygments |
||||
, dpcontracts |
||||
, tabulate |
||||
, py-cpuinfo |
||||
, typeguard |
||||
, astor |
||||
, numpy |
||||
, asyncstdlib |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "icontract"; |
||||
version = "2.6.1"; |
||||
format = "setuptools"; |
||||
disabled = pythonOlder "3.6"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "Parquery"; |
||||
repo = pname; |
||||
rev = "refs/tags/v${version}"; |
||||
hash = "sha256-QyuegyjVyRLQS0DjBJXpTDNeBM7LigGJ5cztVOO7e3Y="; |
||||
}; |
||||
|
||||
preCheck = '' |
||||
# we don't want to use the precommit.py script to build the package. |
||||
# For the tests to succeed, "ICONTRACT_SLOW" needs to be set. |
||||
# see https://github.com/Parquery/icontract/blob/aaeb1b06780a34b05743377e4cb2458780e808d3/precommit.py#L57 |
||||
export ICONTRACT_SLOW=1 |
||||
''; |
||||
|
||||
|
||||
propagatedBuildInputs = [ |
||||
asttokens |
||||
typing-extensions |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
yapf |
||||
docutils |
||||
pygments |
||||
dpcontracts |
||||
tabulate |
||||
py-cpuinfo |
||||
typeguard |
||||
astor |
||||
numpy |
||||
asyncstdlib |
||||
]; |
||||
|
||||
disabledTestPaths = [ |
||||
# needs an old version of deal to comply with the tests |
||||
# see https://github.com/Parquery/icontract/issues/244 |
||||
"tests_with_others/test_deal.py" |
||||
# mypy decorator checks don't pass. For some reaseon mypy |
||||
# doesn't check the python file provided in the test. |
||||
"tests/test_mypy_decorators.py" |
||||
]; |
||||
|
||||
pythonImportsCheck = [ "icontract" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "Provide design-by-contract with informative violation messages"; |
||||
homepage = "https://github.com/Parquery/icontract"; |
||||
changelog = "https://github.com/Parquery/icontract/blob/master/CHANGELOG.rst"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ gador ]; |
||||
}; |
||||
} |
@ -0,0 +1,34 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, pythonAtLeast |
||||
, pytestCheckHook |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "pyschemes"; |
||||
version = "unstable-2017-11-08"; |
||||
format = "setuptools"; |
||||
|
||||
disabled = pythonAtLeast "3.10"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "spy16"; |
||||
repo = pname; |
||||
rev = "ca6483d13159ba65ba6fc2f77b90421c40f2bbf2"; |
||||
hash = "sha256-PssucudvlE8mztwVme70+h+2hRW/ri9oV9IZayiZhdU="; |
||||
}; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ "pyschemes" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "A library for validating data structures in Python"; |
||||
homepage = "https://github.com/spy16/pyschemes"; |
||||
license = licenses.wtfpl; |
||||
maintainers = with maintainers; [ gador ]; |
||||
}; |
||||
} |
@ -0,0 +1,41 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, pytestCheckHook |
||||
, pytest |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "pytest-test-utils"; |
||||
version = "0.0.6"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "iterative"; |
||||
repo = pname; |
||||
rev = version; |
||||
hash = "sha256-0lShdMNP2suN+JO0uKWwjsGQxFCRnCZEQp2h9hQNrrA="; |
||||
}; |
||||
|
||||
buildInputs = [ |
||||
pytest |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"pytest_test_utils" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Pytest utilities for tests"; |
||||
homepage = "https://github.com/iterative/pytest-test-utils"; |
||||
license = licenses.asl20; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,56 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, flit-core |
||||
, pytestCheckHook |
||||
, cerberus |
||||
, django |
||||
, djangorestframework |
||||
, marshmallow |
||||
, pyschemes |
||||
, wtforms |
||||
, email_validator |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "vaa"; |
||||
version = "0.2.1"; |
||||
format = "pyproject"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "life4"; |
||||
repo = pname; |
||||
rev = "refs/tags/v.${version}"; |
||||
hash = "sha256-24GTTJSZ55ejyHoWP1/S3DLTKvOolAJr9UhWoOm84CU="; |
||||
}; |
||||
|
||||
postPatch = '' |
||||
substituteInPlace pyproject.toml \ |
||||
--replace "requires = [\"flit\"]" "requires = [\"flit_core\"]" \ |
||||
--replace "build-backend = \"flit.buildapi\"" "build-backend = \"flit_core.buildapi\"" |
||||
''; |
||||
|
||||
nativeBuildInputs = [ |
||||
flit-core |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
cerberus |
||||
django |
||||
djangorestframework |
||||
marshmallow |
||||
pyschemes |
||||
wtforms |
||||
email_validator |
||||
]; |
||||
|
||||
pythonImportsCheck = [ "vaa" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "VAlidators Adapter makes validation by any existing validator with the same interface"; |
||||
homepage = "https://github.com/life4/vaa"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ gador ]; |
||||
}; |
||||
} |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue