nixpkgs/pkgs/development/python-modules/monty/default.nix

58 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, msgpack
, pytestCheckHook
, numpy
, pandas
, pydantic
, pymongo
, ruamel-yaml
, tqdm
}:
2018-06-22 11:54:26 +00:00
buildPythonPackage rec {
pname = "monty";
version = "2021.12.1";
disabled = pythonOlder "3.5"; # uses type annotations
2018-06-22 11:54:26 +00:00
src = fetchFromGitHub {
owner = "materialsvirtuallab";
repo = pname;
rev = "v${version}";
sha256 = "0zcbdh7pqv4dq3fan0zh912w9bvmf2p0zj1fhp0ayhdsc50cwldh";
2018-06-22 11:54:26 +00:00
};
postPatch = ''
substituteInPlace tests/test_os.py \
--replace 'self.assertEqual("/usr/bin/find", which("/usr/bin/find"))' '#'
'';
propagatedBuildInputs = [
ruamel-yaml
tqdm
msgpack
];
checkInputs = [
pytestCheckHook
numpy
pandas
pydantic
pymongo
];
2020-04-06 19:21:27 +00:00
meta = with lib; {
description = "Serves as a complement to the Python standard library by providing a suite of tools to solve many common problems";
2018-06-22 11:54:26 +00:00
longDescription = "
Monty implements supplementary useful functions for Python that are not part of the
standard library. Examples include useful utilities like transparent support for zipped files, useful design
2018-06-22 11:54:26 +00:00
patterns such as singleton and cached_class, and many more.
";
homepage = "https://github.com/materialsvirtuallab/monty";
2018-06-22 11:54:26 +00:00
license = licenses.mit;
maintainers = with maintainers; [ psyanticy ];
};
}