diff options
author | Julien Lepiller <julien@lepiller.eu> | 2017-04-22 22:32:33 +0200 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2017-05-11 21:57:37 +0200 |
commit | 54153b85c7d7cc8671f06d973a6791a150063163 (patch) | |
tree | 575de02d2df4d595e312eec7a19d0086ce4a7210 | |
parent | 18c2546078896a5e47f7b7a0a2a63a184b424bfe (diff) | |
download | patches-54153b85c7d7cc8671f06d973a6791a150063163.tar patches-54153b85c7d7cc8671f06d973a6791a150063163.tar.gz |
gnu: Add python-factory-boy.
* gnu/packages/python.scm (python-factory-boy, python2-factory-boy): New variables.
-rw-r--r-- | gnu/packages/python.scm | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index c09242cb72..3daf5c4298 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14461,3 +14461,35 @@ efficient, unlike some Python versions of the same algorithms available on the Web. This package is an extraction of the stemming code included in the Whoosh search engine.") (license license:public-domain))) + +(define-public python-factory-boy + (package + (name "python-factory-boy") + (version "2.8.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "factory_boy" version)) + (sha256 + (base32 "1fvin6san5xsjh2c4y18caj2lnmwxlylyqm8mh1yc6rp38wlwr56")))) + (build-system python-build-system) + (arguments + ;; Tests are not included in the tarball. + `(#:tests? #f)) + (propagated-inputs + `(("faker" ,python-faker))) + (home-page "https://github.com/benhoyt/scandir") + (synopsis "Versatile test fixtures replacement") + (description + "Factory_boy is a fixtures replacement based on thoughtbot’s factory_girl. + +As a fixtures replacement tool, it aims to replace static, hard to maintain +fixtures with easy-to-use factories for complex object. + +Instead of building an exhaustive test setup with every possible combination +of corner cases, factory_boy allows you to use objects customized for the +current test, while only declaring the test-specific fields") + (license license:expat))) + +(define-public python2-factory-boy + (package-with-python2 python-factory-boy)) |