depot/third_party/nixpkgs/pkgs/development/python-modules/parametrize-from-file/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

59 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, coveralls
, numpy
, contextlib2
, decopatch
, more-itertools
, nestedtext
, pyyaml
, tidyexc
, toml
}:
buildPythonPackage rec {
pname = "parametrize-from-file";
version = "0.17.0";
format = "flit";
src = fetchPypi {
inherit version;
pname = "parametrize_from_file";
sha256 = "1c91j869n2vplvhawxc1sv8km8l53bhlxhhms43fyjsqvy351v5j";
};
# patch out coveralls since it doesn't provide us value
preBuild = ''
sed -i '/coveralls/d' ./pyproject.toml
substituteInPlace pyproject.toml \
--replace "more_itertools~=8.10" "more_itertools"
'';
checkInputs = [
numpy
pytestCheckHook
];
propagatedBuildInputs = [
contextlib2
decopatch
more-itertools
nestedtext
pyyaml
tidyexc
toml
];
pythonImportsCheck = [ "parametrize_from_file" ];
meta = with lib; {
description = "Read unit test parameters from config files";
homepage = "https://github.com/kalekundert/parametrize_from_file";
changelog = "https://github.com/kalekundert/parametrize_from_file/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
}