mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-28 07:43:43 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
45 lines
819 B
Nix
45 lines
819 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pretend,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "verspec";
|
|
version = "0.1.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-xFBMppeyBWzbS/pxIUYfWg6BgJJVtBwD3aS6gjY3wB4=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pretend
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Import fail
|
|
"test/test_specifiers.py"
|
|
];
|
|
|
|
pythonImportsCheck = [ "verspec" ];
|
|
|
|
meta = with lib; {
|
|
description = "Flexible version handling";
|
|
homepage = "https://github.com/jimporter/verspec";
|
|
changelog = "https://github.com/jimporter/averspec/releases/tag/v${version}";
|
|
license = with licenses; [
|
|
bsd2 # and
|
|
asl20
|
|
];
|
|
maintainers = [ ];
|
|
};
|
|
}
|