nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 54 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 fetchPypi, 6 jaraco-classes, 7 more-itertools, 8 pytestCheckHook, 9 setuptools-scm, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "jaraco-functools"; 15 version = "4.4.0"; 16 pyproject = true; 17 18 src = fetchPypi { 19 pname = "jaraco_functools"; 20 inherit version; 21 hash = "sha256-2iGTOwQXuJUVViZWVHp3tJMfmBdusXNkTA01Ayoz1rs="; 22 }; 23 24 postPatch = '' 25 sed -i "/coherent\.licensed/d" pyproject.toml 26 ''; 27 28 build-system = [ 29 setuptools 30 setuptools-scm 31 ]; 32 33 dependencies = [ more-itertools ]; 34 35 nativeCheckInputs = [ 36 jaraco-classes 37 pytestCheckHook 38 ]; 39 40 # test is flaky on darwin 41 disabledTests = if stdenv.hostPlatform.isDarwin then [ "test_function_throttled" ] else null; 42 43 pythonNamespaces = [ "jaraco" ]; 44 45 pythonImportsCheck = [ "jaraco.functools" ]; 46 47 meta = { 48 description = "Additional functools in the spirit of stdlib's functools"; 49 homepage = "https://github.com/jaraco/jaraco.functools"; 50 changelog = "https://github.com/jaraco/jaraco.functools/blob/v${version}/NEWS.rst"; 51 license = lib.licenses.mit; 52 maintainers = [ ]; 53 }; 54}